ImportError: cannot import name 'sysconfig'


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#重新安装

重新安装后即可使用不会报错


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM