Python Forum
Fail install package using pip
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Fail install package using pip
#1
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
Reply
#2
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.
Reply
#3
(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
Reply
#4
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
Reply
#5
(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.
Reply
#6
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.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED]certificate verify fail byronbonkers 0 1,823 Feb-19-2023, 10:13 PM
Last Post: byronbonkers
  Flashing bin files Always fail at 26% bowsprit 1 2,005 Jul-26-2020, 03:02 AM
Last Post: bowsprit

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020