When pip installs the python three-party library under mac, it prompts Could not fetch URL https://pypi.python.org/simple/virtualenv/: There was a problem confirming the ssl certificate:......

If you have any questions, please leave a message and share the big pits you have encountered.

I just changed a mirror here, the specific operation steps are as follows (I am MAC):

~:mkdir .pip

~:cd .pip

~ : Vi pip.conf

Put the following in the file pip.conf

[global]
timeout = 6000
index-url = http://pypi.douban.com/simple/ 
[install] use-mirrors = true mirrors = http://pypi.douban.com/simple/ trusted-host = pypi.douban.com

down,再去安装就不会报错啦,亲身体验结果

 

python -m pip install --upgrade pip (don't forget to update it)

 

pip install requests (this package can be installed successfully)

 

The solution I saw on the Internet (I did not succeed in this solution, you can try it):

During normal installation, we use pip install third-party library   

If the above error occurs, change the command to   

pip --trusted-host pypi.python.org install third-party library

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326002830&siteId=291194637