So I've installed Python requests using these methods:
$ git clone git://github.com/requests/requests.git
$ curl -OL https://github.com/requests/requests/tarball/master
$ cd requests $ pip install .
pip install requests
C:\Users\anonr>pip list
Package Version
---------- --------
certifi 2019.3.9
chardet 3.0.4
idna 2.8
pip 19.0.3
requests 2.21.0
setuptools 40.8.0
urllib3 1.24.1
Which I found here:
And I have requests on my packages in Python27/lib/site-packages/requests
But when I try to use it on a script with import requests;
it doesn't work.
Like I did not install it at all.
Does any one know how to fix this problem? I tried reinstalling and installing again but still...
Please help.
Do you use virtual environment? Maybe problem is because you do not have installed requests package in virtual environment.
您是否尝试过使用此方法:
pip install requests
您是否进行了标准的pip
安装?
pip install requests
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.