pip is configured with locations that require TLS/SSL, however the

在ubuntu16.04安装python3.7的解释器后,用pip install安装包的时候,报错。

需要修改python源码包的信息,然后重新编译

首先vim /Python-3.7.0/Modules/Setup

然後vim /usr/local/Python-3.7.0/Modules/Setup.dist

然后重新编译

./configure --prefix=/usr/local/python3

make

make install

测试成功与否:

ipython中

执行import ssl

不出现异常就算成功

猜你喜欢

转载自blog.csdn.net/wjg1314521/article/details/110928788