Pit in django (four) requests library installation failed

Method 1: Modify the download mirror path, modify the step link as follows

Modify the mirroring steps

 

Method 2: Download the requests installation package, go to git to download the zip source code

git download link

Enter the python environment, execute pip install requests-master.zip 

 

Method 3: Unzip the requests package directly to the corresponding environment

Unzip the download requests package and put it into the /Library/Python/2.7/site-packagesdirectory

Advantages: simple and convenient
Disadvantages: errors can occur, such as downloading the requests package, but the requests package also relies on the urllib3 package, which is confusing and difficult to manage.

 

Promote the use of the first two

 

Guess you like

Origin blog.csdn.net/Growing_hacker/article/details/98785145