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