我在Macbook上。每当我尝试使用pip安装任何东西时,由于openssl问题而失败。以下是我正在尝试执行此操作的步骤。
$ virtualenv --version
15.1.0
$ virtualenv saqibvenv7
New python executable in /Users/saqib.ali/saqibvenv7/bin/python
Installing setuptools, pip, wheel...done.
$ source saqibvenv7/bin/activate
(saqibvenv7) $ python --version
Python 2.7.10
(saqibvenv7) $ pip --version
pip 9.0.1 from /Users/saqib.ali/saqibvenv7/lib/python2.7/site-packages (python 2.7)
(saqibvenv7) $ pip install Django==1.8.2
Collecting Django==1.8.2
Could not fetch URL https://pypi.python.org/simple/django/: There was a problem confirming the ssl certificate: [SSL: TLSV1_ALERT_PROTOCOL_VERSION] tlsv1 alert protocol version (_ssl.c:590) - skipping
Could not find a version that satisfies the requirement Django==1.8.2 (from versions: )
No matching distribution found for Django==1.8.2
这是什么解决方案?我做了brew重新安装openssl。但这没有任何区别。
尝试使用例如安装更新版本的pip
pip install --upgrade pip