0

I am using python3.8 in a venv currently and am running into SSL errors (using my original venv as well as after creating a new one using python3.8 -m venv cleanenv). This confuses me on multiple levels as it has worked perfectly fine previously. It's a bit hard to pinpoint since when it doesn't work anymore since I mostly do everything in Docker containers these days, but I don't believe it's an issue with anything I installed (last python installs / downloads would have been some spacy stuff iirc). I tried the steps of this stackoverflow answer but keep getting the same errors.
Some example output when trying to install a random package:

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

ETA: It also does not work outside of the venv, using python3.8, but fine with newer python versions (oversaw that previously). I also tried a new venv and run into the same issues. So, using my Python 3.8 gives out the errors but Python 10 is fine.

The last things I did in general was installing nginx and running a node application. I did run into some issues with the iptables settings so idk if that might be worth mentioning.

I am running on Arch Linux (Manjaro)

0 Answers0