Python Forum
Thread Rating:
  • 1 Vote(s) - 4 Average
  • 1
  • 2
  • 3
  • 4
  • 5
PIP sudden ssl error
#1
Could not install packages due to an EnvironmentError: HTTPSConnectionPool


Could not install packages due to an EnvironmentError: HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Max retries exceeded with url: /packages/f5/1d/c98a587dc06e107115cf4a58b49de20b19222c83d75335a192052af4c4b7/incremental-17.5.0-py2.py3-none-any.whl (Caused by SSLError(SSLError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:833)'),))


working in a venv python 3.6

pip 18.1 installed
Reply
#2
what package?
Reply
#3
Try:
python -m pip install --trusted-host pypi.python.org --trusted-host files.pythonhosted.org --trusted-host pypi.org --upgrade pip
Bug report, bug.
Quote:It appears the issue is a corporate proxy/firewall/mitm-box is not allowing traffic to pypi.org and/or files.pythonhosted.org.

Check your TLS version.
If your TLS version is less than 1.2 you have to upgrade it,
since the PyPI repository is on a brownout period of deprecating early TLS.
python -c "import urllib.request, json; print(json.loads(urllib.request.urlopen('https://www.howsmyssl.com/a/check').read())['tls_version'])"
Output:
TLS 1.2
Reply
#4
Lars60+ -- ALL Packages nothing works currently

snippsat:

I ran
python -m pip install --trusted-host pypi.python.org --trusted-host files.pythonhosted.org --trusted-host pypi.org --upgrade pip

got
Could not install packages due to an EnvironmentError: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/pip/ (Caused by ResponseError('toomany 503 error responses',)


replied with tls 1.2.


I have been developing this way forever what changed?
Reply
#5
I am getting the same error while installing packages using PIP or while creating PIP/Virtual enviornment.
I have verified with network/Security team and they do not see any blocks for host - (host='files.pythonhosted.org', port=443)

Error:

Could not install packages due to an EnvironmentError: HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Max retries exceeded with url: /packages/54/0c/d01aa759fdc501a58f431eb594a17495f15b88da142ce14b5845662c13f3/pip-20.0.2-py2.py3-none-any.whl (Cau
sed by SSLError(SSLError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:833)'),))

Everything was working till day before yesterday and now its stopped working. Is there any immediate resolution for this?
Reply
#6
In fact I face same issue and realized that zscalar is blocking. Until then I was using simple
pip install <package name>
Now i changed the command by adding additional parameter as trusted host
I install Jupyter by using below command and it works:
pip install --trusted-host pypi.python.org --trusted-host files.pythonhosted.org --trusted-host pypi.org jupyter
Can you try in similar way.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Sudden Problem with pexpect gw1500se 3 2,326 Nov-19-2021, 11:21 PM
Last Post: bowlofred
  All of a sudden Pycharm doesn't run anymore (select valid interpreter) Luke_Drillbrain 1 5,223 May-04-2017, 07:30 PM
Last Post: buran

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020