'Could not install packeges due to an EnviromentError: HTTPSConnectionPool
I am trying to install a flask ext called flask-wtf, here is the pypi page: https://pypi.org/project/Flask-WTF/
When i try pip install flask-wtf, pip3 install flask-wtf, python -m pip install flask-wtf I always get the same error. First it outputs 4 warnings and then the EnviromentError: HTTPSConnectionPool.
I had this problem on other modules i wanted to install but i never seem to fix it.
More info: Sometimes i asked this questions and i got suggestions such as 'You are behind a proxy' 'Restart you pc' 'Update pip' 'Use --user tag' All those suggestions have never worked for me.
Here is my command line output
Collecting flask-wtf
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, stat
us=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, '[SSL
: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issu
er certificate (_ssl.c:1108)'))': /packages/3a/26/3803ee692eb9a8d21bf7ba1cecd649
ce3a55899c65467bdfc1bad13ec50f/Flask_WTF-1.0.1-py3-none-any.whl
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, stat
us=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, '[SSL
: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issu
er certificate (_ssl.c:1108)'))': /packages/3a/26/3803ee692eb9a8d21bf7ba1cecd649
ce3a55899c65467bdfc1bad13ec50f/Flask_WTF-1.0.1-py3-none-any.whl
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, stat
us=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, '[SSL
: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issu
er certificate (_ssl.c:1108)'))': /packages/3a/26/3803ee692eb9a8d21bf7ba1cecd649
ce3a55899c65467bdfc1bad13ec50f/Flask_WTF-1.0.1-py3-none-any.whl
WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, stat
us=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, '[SSL
: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issu
er certificate (_ssl.c:1108)'))': /packages/3a/26/3803ee692eb9a8d21bf7ba1cecd649
ce3a55899c65467bdfc1bad13ec50f/Flask_WTF-1.0.1-py3-none-any.whl
WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, stat
us=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, '[SSL
: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issu
er certificate (_ssl.c:1108)'))': /packages/3a/26/3803ee692eb9a8d21bf7ba1cecd649
ce3a55899c65467bdfc1bad13ec50f/Flask_WTF-1.0.1-py3-none-any.whl
ERROR: Could not install packages due to an EnvironmentError: HTTPSConnectionPoo
l(host='files.pythonhosted.org', port=443): Max retries exceeded with url: /pack
ages/3a/26/3803ee692eb9a8d21bf7ba1cecd649ce3a55899c65467bdfc1bad13ec50f/Flask_WT
F-1.0.1-py3-none-any.whl (Caused by SSLError(SSLCertVerificationError(1, '[SSL:
CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer
certificate (_ssl.c:1108)')))
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
