requests installation and problem-solving

 

1.requests installation: In the command window, type pip install requests directly installed

2. https://github.com/psf/requests download installation package requests-master: decompressing the downloaded installation package sent to the \ Lib directory \ python-3.5.0

 

 

Open cmd window, switch to the requests-master directory, then execute the command python setup.py install

 

 Screenshot successful installation:

 After installation is complete, re-open a cmd window, enter the following command to view the requests if the installation is successful, no error message says that the installation was successful

 

In Pycharm in import requests while still being given the solution:

In Pycharm find the file-settings->

 

Click Add in the search box to enter requests , check requests , click installPackage the requests added.

 

Restart PyCharm , successfully resolved the problem! ! !

Guess you like

Origin www.cnblogs.com/taider/p/11851490.html