Skip to content
Advertisement

I have requests installed, but I am still getting the ModuleNotFoundError: No module named ‘requests’ error [closed]

I did pip freeze, and found requests, therefore I have requests, but I am getting an error saying

ModuleNotFoundError: No module named ‘requests’

I just installed Python 3.9.2, and Python 3.8 is still on my computer. (Stating this in case it’s a contributing factor to my problem.)

Please help!

Advertisement

Answer

Are you sure requests was installed in the correct python install, you can do python3.9 -mpip list | grep requests to check if requests is installed for python3.9, if it doesn’t show up you can use python3.9 -mpip install requests to install it. (the error might be the pip command is the wrong python instances pip command)

User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement