Cannot install matplotlib for python in Visual Studio 2017

  • Thread starter Thread starter Hiline1961
  • Start date Start date
H

Hiline1961

Guest
Hello,

I'm trying to follow a Python 3.6 tutorial that wants me to install the matplotlib. But, everytime I try to install it within the Python Environments window of VS 2017 I get the following in the Output window:

----- Installing 'matplotlib' -----
Collecting matplotlib
Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:841)'),)': /simple/matplotlib/
Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:841)'),)': /simple/matplotlib/
Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:841)'),)': /simple/matplotlib/
Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:841)'),)': /simple/matplotlib/
Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:841)'),)': /simple/matplotlib/
Could not fetch URL Links for matplotlib: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/matplotlib/ (Caused by SSLError(SSLError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:841)'),)) - skipping
Could not find a version that satisfies the requirement matplotlib (from versions: )
No matching distribution found for matplotlib
Could not fetch URL Links for pip: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/pip/ (Caused by SSLError(SSLError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:841)'),)) - skipping
----- Failed to install 'matplotlib' -----


Does anyone know how to fix this? I would appreciate any help.


I did find an article that said this:

You can ignore SSL errors by setting pypi.org and files.pythonhosted.org as trusted hosts.

$ pip install --trusted-host pypi.org --trusted-host files.pythonhosted.org <package_name>

I'm not sure how I would manually type that pip command in VS 2017. Can it be done? And, that isn't really a solution - it appears to be a work around.

Thank you very much!!

PS: I tried to update PIP from 10.0.1 to 18.1 and got the same certificate errors.

Continue reading...
 
Back
Top