centos 安装 python3 问题
来源:2-4 虚拟环境的安装和配置
慕粉4117367
2019-12-03
将原来的python3.4移除,安装python3.7,采用的是下载安装包解压用make install命令
安装好后,python -V 显示正常,但是pip 出问题,接下去无法安装virtualenvwrapper了,错误信息包含如下:
Requirement already up-to-date: pip in /usr/local/lib/python3.7/site-packages (19.0.3)
pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
Could not fetch URL https://pypi.org/simple/pip/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host=‘pypi.org’, port=443): Max retries exceeded with url: /simple/pip/ (Caused by SSLError(“Can’t connect to HTTPS URL because the SSL module is not available.”)) - skipping
试了很多问题依然存在,有没有解决的办法
1回答
-
你是通过源码方式安装的python吗? 如果通过源码方式make的方式安装会出ssl的问题。因为源码安装的方式之前需要安装openssl。 而且必须要在编译python源码之前安装。你可以安装一下openssl 然后再重新编译一下源码就行了
012019-12-09
相似问题