Hello approximately about 2 weeks ago I started not being able to download python packages or even access the pypi website which is "unreachable" on chrome and firefox.
When I try to download a package it gives me this :
$ python -m pip install --user numpy scipy matplotlib ipython jupyter pandas sympy nose
Collecting numpy
Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProtocolError('Connection aborted.', ConnectionResetError(10054, 'An existing connection was forcibly closed by the remote host', None, 10054, None))': /simple/numpy/
Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProtocolError('Connection aborted.', ConnectionResetError(10054, 'An existing connection was forcibly closed by the remote host', None, 10054, None))': /simple/numpy/
Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProtocolError('Connection aborted.', ConnectionResetError(10054, 'An existing connection was forcibly closed by the remote host', None, 10054, None))': /simple/numpy/
Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProtocolError('Connection aborted.', ConnectionResetError(10054, 'An existing connection was forcibly closed by the remote host', None, 10054, None))': /simple/numpy/
Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProtocolError('Connection aborted.', ConnectionResetError(10054, 'An existing connection was forcibly closed by the remote host', None, 10054, None))': /simple/numpy/
Could not find a version that satisfies the requirement numpy (from versions: )
No matching distribution found for numpy
I have no idea why this is happening, I didn't change anything on my computer, it just started to do this one day and on both my computers, I don't understand. Does anybody have any idea why this is happening ? I searched for hours but couldn't find anything to correct this bug.
What I have attempted : - uninstall every python program and reinstall - check my drivers (you never know) - deactivate any proxy - disable my firewall
OS : Windows 10
So for anybody searching for a solution, I found this which might not be optimal but at least it works, instead of pip install package
use this command
python.exe -m pip install package --proxy="proxy:port"
You can find a big list of free proxies here : https://free-proxy-list.net/ (note that not all of them work and you might wanna try multiple before getting one that works)
So for example you could use :
python.exe -m pip install numpy --proxy="179.185.199.195:8080"