【发布时间】:2017-08-04 00:07:23
【问题描述】:
我是 virtualenv 的新手,并试图让它工作,以便与给定的项目一起工作。我已经按照this 指南进行了所有设置。一旦我进入 virtualenv,pip 就会停止处理上述错误。
这里的确切问题是:
(virtual-env) $ pip install --trusted-host pypi.python.org Django==1.11.4
pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
Collecting Django==1.11.4
Could not fetch URL https://pypi.python.org/simple/django/: 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 Django==1.11.4 (from versions: )
No matching distribution found for Django==1.11.4
...是的...--trusted-host 没有区别...看起来,因为它需要一些我找不到的包。
版本:
-
Python
$ python --version Python 3.6.2 -
点
$ pip --version # <- Edited pip 9.0.1
我确实尝试安装 ssl 模块,但无济于事。原来你不能用 python 3 安装 ssl。问题是 print sintax。
[...]
File "/tmp/pip-build-undfmh27/ssl/setup.py", line 33
print 'looking for', f
^
SyntaxError: Missing parentheses in call to 'print'
感谢任何帮助
【问题讨论】:
标签: python ssl pip virtualenv