0
点赞
收藏
分享

微信扫一扫

ubuntu14(python3.7) 安装pip3报错:ImportError: cannot import name 'sysconfig'

千妈小语 2022-01-30 阅读 60


解决方案:

1、加上源

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

2、更新

sudo apt-get update

3、安装pip3

sudo apt-get install python3-pip

4、安装distutils

sudo apt-get install python3-distutils

5、再次执行pip3不报错


举报

相关推荐

0 条评论