Python Forum
Fail install package using pip - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: Networking (https://python-forum.io/forum-12.html)
+--- Thread: Fail install package using pip (/thread-39536.html)



Fail install package using pip - ez_daniel - Mar-03-2023

Hi,

I'm new for Python. I'm on Windows 10 and have Python 3.11.2. I try to install package named as 'requests', by command #pip install requests. But, I kept getting the following errors:

WARNING: 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:992)'))': /simple/requests/
WARNING: 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:992)'))': /simple/requests/
WARNING: 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:992)'))': /simple/requests/
WARNING: 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:992)'))': /simple/requests/
WARNING: 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:992)'))': /simple/requests/
Could not fetch URL https://pypi.org/simple/requests/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/requests/ (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:992)'))) - skipping
ERROR: Could not find a version that satisfies the requirement requests (from versions: none)
ERROR: No matching distribution found for requests.

Please give me some help. Thanks.

Daniel


RE: Fail install package using pip - Larz60+ - Mar-04-2023

3.11.2 was just released, I tried requests and it appears as though it hasn't been upgraded yet.

There is a link to authors here: https://requests.readthedocs.io/en/latest/, you can contact them, but I'd just wait a few days before using 3.11.2.


RE: Fail install package using pip - ez_daniel - Mar-06-2023

(Mar-04-2023, 01:17 PM)Larz60+ Wrote: 3.11.2 was just released, I tried requests and it appears as though it hasn't been upgraded yet.

There is a link to authors here: https://requests.readthedocs.io/en/latest/, you can contact them, but I'd just wait a few days before using 3.11.2.

Hi,

Thanks for your reply. I uninstall python 3.11.2 and install python 3.10.8. After that, I run #pip install requests. But, I got the same errors.

Daniel


RE: Fail install package using pip - Larz60+ - Mar-06-2023

I just installed requests with python 3.10.8 without issue.
I would have only backed off to 3.11.1 if I were you.
What are the exact commands you are using to install?
Also, pip is run from command line.
try pip -V make sure you are running the version you think you are.
And finally, I use virtual environments (always) and rarely have issues (my latest project has over 200 modules)
I also use pyenv which allows each project to have one or many different versions of python


RE: Fail install package using pip - ez_daniel - Mar-10-2023

(Mar-06-2023, 08:00 PM)Larz60+ Wrote: I just installed requests with python 3.10.8 without issue.
I would have only backed off to 3.11.1 if I were you.
What are the exact commands you are using to install?
Also, pip is run from command line.
try pip -V make sure you are running the version you think you are.
And finally, I use virtual environments (always) and rarely have issues (my latest project has over 200 modules)
I also use pyenv which allows each project to have one or many different versions of python

I run this command on a PC of my company. It looks like the errors are caused by company security rule. Then, I run it on a server and it works.
Thanks for your reply.


RE: Fail install package using pip - Larz60+ - Mar-10-2023

ex_daniel Wrote:I run this command on a PC of my company. It looks like the errors are caused by company security rule. Then, I run it on a server and it works.
Thanks for your reply.
I understand. Helps to be root.