cannot install any packages in PyCharm

Viewed 663

I was trying to install python packages in PyCharm. But I cannot see any Latest version as below: enter image description here

I used pip to install some packages and it is not working and showing:

(base) C:\>pip install auto-py-to-exe
Collecting auto-py-to-exe
  Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1045)'))': /simple/auto-py-to-exe/
  Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1045)'))': /simple/auto-py-to-exe/
  Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1045)'))': /simple/auto-py-to-exe/
  Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1045)'))': /simple/auto-py-to-exe/
  Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1045)'))': /simple/auto-py-to-exe/
  Could not fetch URL https://pypi.org/simple/auto-py-to-exe/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/auto-py-to-exe/ (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1045)'))) - skipping

Then I tried with trusted host cmd:

(base) C:>pip install auto-py-to-exe --trusted-host pypi.org --trusted-host files.pythonhosted.org

Then it shows "Could not find a version that satisfies the requirement auto-py-to-exe (from versions: ) No matching distribution found for auto-py-to-exe"

So I tried to give it a version command: (base) C:>pip install auto-py-to-exe from versions 2.7.5 --trusted-host pypi.org --trusted-host files.pythonhosted.org However still shows the same issue here:

Collecting auto-py-to-exe
  Could not find a version that satisfies the requirement auto-py-to-exe (from versions: )
No matching distribution found for auto-py-to-exe

Then I am out... So if anyone has any ideas, please help. Many thanks.

1 Answers
Related