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#重新安装
重新安装后即可使用不会报错