error while installing python3

885 views
Skip to first unread message

ved prakash

unread,
Oct 6, 2020, 3:51:56 AM10/6/20
to wrf-hydro_users
please help me to short out the following error I got while installing PYTHON3 LIBRARY in UBUNTU 20.4 in windows 10.
root@DESKTOP-VBTQ089:~/WRF-Hydro/src/netcdf-fortran-4.5.2# pip3 install netcdf4 matplotlib WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available. Collecting netcdf4 
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/netcdf4/ 
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/netcdf4/ 
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/netcdf4/ 
WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/netcdf4/ 
WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/netcdf4/ Could not fetch URL https://pypi.org/simple/netcdf4/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/netcdf4/ (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available.")) - skipping ERROR: Could not find a version that satisfies the requirement netcdf4 (from versions: none) ERROR: No matching distribution found for netcdf4 WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available. Could not fetch URL https://pypi.org/simple/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("Can't connect to HTTPS URL because the SSL module is not available.")) - skipping  

S.AmirMohammad

unread,
Oct 7, 2020, 2:21:10 AM10/7/20
to wrf-hydro_users, ved prakash
Dear prakash,
This problem is caused because pip can not trust the url (https://pypi.org) to retrieve requested data. You can work around this problem by adding a certificate or temporary declaring that url as a trusted one. the first approach is more secure, but the second one is easier. THIS link contain more information about both approaches.
For the easier approach, you can do as in mentioned link encouraged:
pip install --trusted-host pypi.org --trusted-host pypi.python.org --trusted-host files.pythonhosted.org <packageName> -vvv  
Reply all
Reply to author
Forward
0 new messages