I've just had to reinstall python on my Widnows machine and have run into an issue installing dependencies through pip
.
Regardless of what package I try to install, when I run pip3 install <package-name>
I get the following error (eg. installing numpy):
Could not install packages due to an EnvironmentError: HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Max retries exceeded with url: /packages/50/42/f8310b51b3b9deccff3fe2e2b4e627ac8010f435f622ad225cd3ca6936ce/numpy-1.15.3-cp37-none-win32.whl (Caused by ProtocolError('Connection aborted.', ConnectionResetError(10054, 'An existing connection was forcibly closed by the remote host', None, 10054, None)))
PC Info: Windows 10, Python v3.7.1, Pip 18.1.
Only last week I was able to install packages. I've had a look around SO and have tried a number of suggestions on running with trusted hosts, etc. but no avail.
Edit: Forgot to mention I am working on a University PC, hence behind a firewall. Just tried to run pip using the Uni's proxy settings but threw same error. Using my Macbook on the wifi (private not Uni PC) throws the same error.
I am assuming this must have something to do with the firewall settings?