找不到满足django要求的版本(来自版本:)找不到与django相匹配的分发版本

时间:2018-09-02 08:53:11

标签: django pip virtualenv

我能够在虚拟环境中安装django。现在,每当我尝试使用     

pip install django==2.07

它返回:

 Cache entry deserialization failed, entry ignored
  Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', NewConnectionError(': Failed to establish a new connection: [Errno 61] Connection refused',))': /simple/django/
  Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', NewConnectionError(': Failed to establish a new connection: [Errno 61] Connection refused',))': /simple/django/
  Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', NewConnectionError(': Failed to establish a new connection: [Errno 61] Connection refused',))': /simple/django/
  Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', NewConnectionError(': Failed to establish a new connection: [Errno 61] Connection refused',))': /simple/django/
  Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', NewConnectionError(': Failed to establish a new connection: [Errno 61] Connection refused',))': /simple/django/
  Could not find a version that satisfies the requirement django==2.0.7 (from versions: )
No matching distribution found for django==2.0.7

我还有: 点-10.0.1 virtualenv- 16.0.0

这真杀了我。我相信这与点子有关。我是一个初学者,所以请逐步引导我。谢谢!

1 个答案:

答案 0 :(得分:7)

Django 2以上版本仅支持python3,因此请尝试

pip3 install django==2.0.7

如果您的系统中装有python3.5及更高版本

也可以通过点子查看受支持的版本:

pip install django==0

pip3 install django==0