python3.7 pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available解决

源码安装的python3.7.4,安装完后用pip安装提示

pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available

网上说重新编译,添加--with-ssl,编译完还是不行,后边才发现编译时就报错了 configure: WARNING: unrecognized options: --with-ssl

参数不正确,改成--with-ssl-default-suites=openssl ,再编译就行了

posted @ 2019-10-10 17:32  wanshuduner  阅读(927)  评论(0)    收藏  举报