简体   繁体   中英

ModuleNotFoundError: No module named 'requests'. Even though requests has already been installed

I have installed using: pip install requests yet I continue to get the error:

ModuleNotFoundError: No module named requests

I uninstalled and reinstalled it yet it is still not fixed. Does anyone know the best way to fix this?

I am using python 2.7

ok so I found the solution. I needed to get the source code: I did this by cloning the public repository:

$ git clone git://github.com/psf/requests.git

https://requests.readthedocs.io/en/master/user/install/

I hope this is useful to others.

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM