Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Could not find a version that satisfies the requirement django (from versions: ) No matching distribution found for django [duplicate]

I was able to install django once in a virtual enviroment. Now whenever i try to install it with

pip install django==2.07

it returns:

 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

Also I have: pip- 10.0.1 virtualenv- 16.0.0

This is killing me. I believe it has something to do with pip. I am a beginner so walk me through. Thanks!

like image 668
Rassky Avatar asked Sep 02 '18 08:09

Rassky


1 Answers

Django above 2 version support only python3 , so try

pip3 install django==2.0.7

if you have python3.5 and above in your system

Also to see supported versions by pip try:

pip install django==0

and

pip3 install django==0
like image 91
Dimitris Kougioumtzis Avatar answered Oct 04 '22 01:10

Dimitris Kougioumtzis