pip connection failure: cannot fetch index base URL http://pypi.python.org/simple/

后端 未结 30 1071
后悔当初
后悔当初 2020-11-28 23:19

I run sudo pip install git-review, and get the following messages:

Downloading/unpacking git-review
  C         


        
30条回答
  •  余生分开走
    2020-11-28 23:26

    I got this error message in ~/.pip/pip.log

    Could not fetch URL https://pypi.python.org/simple/: connection error: [Errno 185090050] _ssl.c:344: error:0B084002:x509 certificate routines:X509_load_cert_crl_file:system lib
      Will skip URL https://pypi.python.org/simple/ when looking for download links for regulargrid
    

    I fixed it by updating my ~/.pip/pip.conf. It accidentally pointed to cacert.pem file that did not exist and looked like this

    [global]
    cert = /some/path/.pip/cacert.pem
    

提交回复
热议问题