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
Related
My error
Microsoft Windows [Version 10.0.22621.1105]
(c) Microsoft Corporation. All rights reserved.
C:\Users\donhu>conda --version
conda 23.1.0
C:\Users\donhu>pip --version
pip 21.2.4 from C:\ProgramData\Anaconda3\lib\site-packages\pip (python 3.9)
C:\Users\donhu>conda list -f pytorch
# packages in environment at C:\ProgramData\Anaconda3:
#
# Name Version Build Channel
C:\Users\donhu>conda install pytorch torchvision torchaudio pytorch-cuda=11.7 -c pytorch -c nvidia
Retrieving notices: ...working... ERROR conda.notices.fetch:get_channel_notice_response(63): Request error <HTTPSConnectionPool(host='repo.anaconda.com', port=443): Max retries exceeded with url: /pkgs/r/notices.json (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available."))> for channel: defaults url: https://repo.anaconda.com/pkgs/r/notices.json
ERROR conda.notices.fetch:get_channel_notice_response(63): Request error <HTTPSConnectionPool(host='repo.anaconda.com', port=443): Max retries exceeded with url: /pkgs/msys2/notices.json (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available."))> for channel: defaults url: https://repo.anaconda.com/pkgs/msys2/notices.json
ERROR conda.notices.fetch:get_channel_notice_response(63): Request error <HTTPSConnectionPool(host='repo.anaconda.com', port=443): Max retries exceeded with url: /pkgs/main/notices.json (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available."))> for channel: defaults url: https://repo.anaconda.com/pkgs/main/notices.json
ERROR conda.notices.fetch:get_channel_notice_response(63): Request error <HTTPSConnectionPool(host='conda.anaconda.org', port=443): Max retries exceeded with url: /nvidia/notices.json (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available."))> for channel: nvidia url: https://conda.anaconda.org/nvidia/notices.json
ERROR conda.notices.fetch:get_channel_notice_response(63): Request error <HTTPSConnectionPool(host='conda.anaconda.org', port=443): Max retries exceeded with url: /pytorch/notices.json (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available."))> for channel: pytorch url: https://conda.anaconda.org/pytorch/notices.json
done
Collecting package metadata (current_repodata.json): /
failed
CondaSSLError: OpenSSL appears to be unavailable on this machine. OpenSSL is required to
download and install packages.
Exception: HTTPSConnectionPool(host='conda.anaconda.org', port=443): Max retries exceeded with url: /pytorch/win-64/current_repodata.json (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available."))
C:\Users\donhu>
How to fix it?
I'm using Jupyter notebooks with 32-bit Python. I'm using pip 21.2.4 and Python 3.9. When I try to install sqlalchemy-access
pip install sqlalchemy-access
I get these errors,
Could not fetch URL https://pypi.org/simple/sqlalchemy-access/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/sqlalchemy-access/ (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1129)'))) - skipping
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(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1129)'))) - skipping
Note: you may need to restart the kernel to use updated packages.
One reccomendation I recieved was to try specifying the url using:
pip install --index-url=https://pypi.org/simple/sqlalchemy-access/
But then I just get another error
The current directory is invalid.
Any tips? Thanks!
I'm trying to install PyPDF4 in Anaconda. When I do pip install PyPDF2, it shows
Could not fetch URL https://pypi.org/simple/pypdf2/: There was a
problem confirming the ssl certificate:
HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded
with url: /simple/pypdf2/ (Caused by
SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED]
certificate verify failed: self signed certificate in certificate
chain (_ssl.c:1129)'))) - skipping 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(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED]
certificate verify failed: self signed certificate in certificate
chain (_ssl.c:1129)'))) - skipping
I also tried to install through pip install --index-url=https://pypi.org/simple/pip/ PyPDF2, but it still shows
Looking in indexes: https://pypi.org/simple/pip/ Could not fetch URL
https://pypi.org/simple/pip/pypdf2/: There was a problem confirming
the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443):
Max retries exceeded with url: /simple/pip/pypdf2/ (Caused by
SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED]
certificate verify failed: self signed certificate in certificate
chain (_ssl.c:1129)'))) - skipping Could not fetch URL
https://pypi.org/simple/pip/pip/: There was a problem confirming the
ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max
retries exceeded with url: /simple/pip/pip/ (Caused by
SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED]
certificate verify failed: self signed certificate in certificate
chain (_ssl.c:1129)'))) - skipping
I followed some guides online, and tried and install through pip3 install --trusted-host pypi.org --trusted-host files.pythonhosted.org pip PyPDF2, but it shows
ERROR: Could not find a version that satisfies the requirement PyPDF2
(from versions: none) ERROR: No matching distribution found for PyPDF2
instead. I did try to update Python version but it still didn't work (Python version 3.9.12)
Could anyone tell me how I should fix these problems?
Thank you!
Suddenly I'm unable to download or update anything from both anaconda and pip on mac os.
When I'm trying to download or update from anaconda I get the following error:
CondaHTTPError: HTTP 000 CONNECTION FAILED for url https://conda.anaconda.org/soumith/osx-64/current_repodata.json
when trying to install something trough pip I get the following errors and warnings:
Could not fetch URL https://pypi.org/simple/certifi/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/certifi/ (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 certifi>=2017.4.17 (from requests->requests-html->facebook-scraper) (from versions: none)
ERROR: No matching distribution found for certifi>=2017.4.17 (from requests->requests-html->facebook-scraper)
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
Can anyone pls help?
Thanks!
First Issue:
I am using a MackBook Pro to run a python3 program in PyCharm that connects to MySQL ,when I run the program I receive
ModuleNotFoundError: No module named 'mysql
for line 1 which is
import mysql.connector
What i have tried:
I tried to install mysql using pip
pip3 install mysql-connector-python
new issue:
while executing
pip install mysql-connector-python
received:
Could not fetch URL https://pypi.org/simple/mysql-connector-python/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/mysql-connector-python/ (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1076)'))) - skipping
Could not find a version that satisfies the requirement mysql-connector-python (from versions: )
No matching distribution found for mysql-connector-python
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(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1076)'))) - skipping"