我已经成功在本地安装了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>
安装软件包?
sudo apt-get install python3-pip
在 Ubuntu 上明确安装了 pip3? - Sidahmedpip3 install --upgrade pip
命令,查看是否会得到相同的提示信息。 - Herryconda install -c anaconda openssl
。 - Emmanuel Chamilakis