I'm trying to use pip to install plotnine and a few other packages. What could be causing this error? I have no idea as I am new to Python.
PS C:\Users\jmurillo> pip install plotnine
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/plotnine/
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/plotnine/
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/plotnine/
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/plotnine/
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/plotnine/
Could not fetch URL https://pypi.org/simple/plotnine/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/plotnine/ (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 plotnine (from versions: none)
ERROR: No matching distribution found for plotnine
I've added C:\Users\jmurillo\Anaconda3\Scripts path to my environment variables. Any help would be greatly appreciated. Thanks in advance.
EDIT: Found a weird work-around to this issue. So I was initially trying to do pip installs after downloading anaconda navigator (latest version comes with pip). However, it wasn't running. So what I tried was installing Python 3 alone and the pip installations ran successfully... however, when I try to load them in Jupyter Notebooks (Anaconda) they weren't there... so I just specified the path where packages pip downloaded were in the code and now I can use them. I don't know why this always happens on PC's for me but here we are.
# Change current directory to find all the dang packages pip installed... so dumb
os.chdir(r"C:\Users\jmurillo\AppData\Local\Programs\Python\Python310\Lib\site-packages")