pipenv无法安装django

时间:2018-03-27 20:34:07

标签: python django pip pipenv

所以我刚刚进入编码,我正在使用pipenv来设置虚拟环境并尝试在虚拟环境中安装django。我正在使用python 3.6.4,但也尝试使用3.5安装并获得相同的错误。运行'pipenv install django'后我收到此错误:

Installing django…
Collecting django
Using cached Django-2.0.3-py3-none-any.whl
Collecting pytz (from django)
Using cached pytz-2018.3-py2.py3-none-any.whl
Installing collected packages: pytz, django
Successfully installed django-2.0.3 pytz-2018.3

Adding django to Pipfile's [packages]…
Pipfile.lock (711973) out of date, updating to (220011)…
Locking [dev-packages] dependencies…
Locking [packages] dependencies…
raise SSLError(e)
requests.packages.urllib3.exceptions.SSLError: [Errno 2] No such file or directory

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/local/lib/python3.5/dist-packages/pipenv/resolver.py", line 82, in <module>
main()
File "/usr/local/lib/python3.5/dist-packages/pipenv/resolver.py", line 71, in main
clear=do_clear,
File "/usr/local/lib/python3.5/dist-packages/pipenv/resolver.py", line 63, in resolve
verbose=verbose,
File "/usr/local/lib/python3.5/dist-packages/pipenv/utils.py", line 471, in resolve_deps
timeout=10,
File "/usr/local/lib/python3.5/dist-packages/pipenv/vendor/requests/sessions.py", line 488, in get
return self.request('GET', url, **kwargs)
File "/usr/local/lib/python3.5/dist-packages/pipenv/vendor/requests/sessions.py", line 475, in request
resp = self.send(prep, **send_kwargs)
File "/usr/local/lib/python3.5/dist-packages/pipenv/vendor/requests/sessions.py", line 596, in send
r = adapter.send(request, **kwargs)
File "/usr/local/lib/python3.5/dist-packages/pipenv/vendor/requests/adapters.py", line 497, in send
raise SSLError(e, request=request)
requests.exceptions.SSLError: [Errno 2] No such file or directory

我是Linux和开发人员的新手,任何帮助都会受到赞赏。

1 个答案:

答案 0 :(得分:1)

看起来你在pipenv中遇到了this bug。它已在主分支中修复,但我不确定从那时起是否有发布。