简体   繁体   中英

Why is Pip not working after upgrading Python to 3.8?

I was working on a 2D game using python 3.6.8 and pip3. Everything was working fine. Then i downloaded and installed python 3.8. Now, pip won't work at all. These are the errors I am getting when running "pip3 install arcade":

WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
Collecting arcade
  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/arcade/
  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/arcade/
  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/arcade/
  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/arcade/
  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/arcade/
  Could not fetch URL https://pypi.org/simple/arcade/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/arcade/ (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 arcade (from versions: none)
ERROR: No matching distribution found for arcade
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

PLEASE HELP, I would like to continue making my game.

The error is pretty clear. You've got a broken ssl module, so you can't connect to HTTPS sites (like PyPI). Perhaps you installed the wrong build of Python, or it was built with a runtime dependency on a library (like OpenSSL) you don't have a compatible version of. Without further information, we have no way of knowing what caused the problem, only that your installation of Python 3.8 is broken.

If there isn't a Mint package for Python 3.8 yet, you can always build it from source , but make sure to install all the dependencies first, or you'll just end up with another broken install.

For Python 3.8,It is possible that pip does not get installed by default. One potential fix recommend by them is to run the below command.

python -m ensurepip --default-pip

If you are still facing the issues you can double check with the configuration procedure for Python 3.8 with the help of the Document .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM