pip is configured with locations that require TLS/SSL, however the ssl module...
Tofloor
poster avatar
xueyuejianghan
deepin
2019-12-23 02:23
Author
Python3安装之后,使用pip命令安装pypi模块的时候报错pip is configured with locations that require TLS/SSL, however the ssl module in Python is not...可以尝试通过以下步骤解决:
编译配置路径的时候./configure --with-ssl
然后make && make install
如果上述步骤没有解决
尝试下面
在解压过的Python安装文件目录,执行
make clean  #如果已经和我一样编译过一次,建议先执行此步骤,否则可省略
./configure prefix=/usr/local/python3


vim ./Modules/Setup   修改Setup文件,取消下面四行的行前注释


SSL=/usr/local/ssl
_ssl _ssl.c \
    -DUSE_SSL -I$(SSL)/include -I$(SSL)/include/openssl \
    -L$(SSL)/lib -lssl -lcrypto


vim /etc/ld.so.conf  修改ld.so.conf文件,添加下面一行
/usr/local/ssl/lib


执行 /sbin/ldconfig -v命令


然后make && make install


Reply Favorite View the author
All Replies
avatar
deepinuser17
deepin
2019-12-23 09:46
#1
顶一个。 谢谢分享
Reply View the author