pip install packages News Could not fetch URL

The cause of the error is reported python.org no longer support TLSv1.0 and TLSv1.1 up. Pip update can solve this problem, but you can not use the command pip install --upgrade pip do update, because the problem TLS certificates need to upgrade pip, pip when they upgrade because of TLS certificates can not download the latest version of pip, which is contradictory, and therefore can not be resolved.
 
We can be manually updated using the following methods:
 
1, mac or linux operating system

curl https://bootstrap.pypa.io/get-pip.py | python


 2.windows operating system
from https://bootstrap.pypa.io/get-pip.py   download get-pip.py file, then run the file using python python get-pip.py can be.

Guess you like

Origin www.cnblogs.com/QQ862668193/p/11319552.html