ImportError: cannot import name 'sysconfig'
錯誤來源
使用pip3安裝第三方組件時產生
解決方案
sudo vim /etc/apt/sources.list
#加入以下內容
⬇
deb http://cn.archive.ubuntu.com/ubuntu bionic main multiverse restricted universe
deb http://cn.archive.ubuntu.com/ubuntu bionic-updates main multiverse restricted universe
deb http://cn.archive.ubuntu.com/ubuntu bionic-security main multiverse restricted universe
deb http://cn.archive.ubuntu.com/ubuntu bionic-proposed main multiverse restricted universe
sudo apt-get update
sudo apt-get install python3-pip#重新安裝
重新安裝后即可使用不會報錯