我已经在本地计算机上成功安装了Python 3.4和Python 3.6,但是无法使用安装软件包pip3
。
执行时pip3 install <package>
,出现以下与SSL相关的错误:
pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
Collecting <package>
Could not fetch URL https://pypi.python.org/simple/<package>/: There was a problem confirming the ssl certificate: Can't connect to HTTPS URL because the SSL module is not available. - skipping
Could not find a version that satisfies the requirement <package> (from versions: )
No matching distribution found for <package>
如何修复Python3.x安装,以便可以使用安装软件包pip install <package>
?
pip3 install --upgrade pip
看看是否收到相同的消息。
sudo apt-get install python3-pip
?