Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Connection to pypi.org timed out

Tags:

python

pip

Unable to pip install 3rd party packages.

(venv) λ pip install django
Collecting django
  Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x000001BEF10AD0F0>, 'Connection to pypi.org timed out. (connect timeout=15)')': /simple/django/
  Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x000001BEF10ADE48>, 'Connection to pypi.org timed out. (connect timeout=15)')': /simple/django/
  Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x000001BEF10BB518>, 'Connection to pypi.org timed out. (connect timeout=15)')': /simple/django/
  Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x000001BEF10BB320>, 'Connection to pypi.org timed out. (connect timeout=15)')': /simple/django/
  Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x000001BEF10BB7B8>, 'Connection to pypi.org timed out. (connect timeout=15)')': /simple/django/
  Could not find a version that satisfies the requirement django (from versions: )
No matching distribution found for django

I'm trying to pip install by just typing pip install django. To give context I'm working on my own personal computer using Windows 10. All other resources I've read seem to just work around the problem. I'm trying to figure out what can be done so I can just simply...

pip install django

I'm not familiar with proxies and firewalls I'm not clear on what steeps need to be taken.

like image 333
binny Avatar asked Aug 25 '19 19:08

binny


2 Answers

Seems you are using a proxy in your network. Either you need to specify the proxy details to pass it, or to stop the proxy for some time.

I think your question is similar to another question:

Proxy awareness with pip

like image 150
J.K Avatar answered Nov 02 '22 23:11

J.K


This is a network issue. It seems internet is not working from your PC. As this is personal PC then you probably not using proxy. Check your internet connectivity or windows firewall on PC.

like image 40
Sachin Avatar answered Nov 02 '22 23:11

Sachin