-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No module named"requests" on chapter 37 #22
Comments
This issue is more of a local problem, you are not able to run the python file because you have not installed requests module in your local machine. |
This can be solved by adding requirements.txt file in the Packages folder |
One of the problems could be that in VS the python interpreter is still selected from the previous exercise (virtual environment). check in the lower right corner if you get something like Python 3.7.....-bit('venv':venv). You should change it so that it is not calling virtual environment anymore. |
After I copied the code to my VS and added subscription key, I execute the code, however, it showed the mistake.
Traceback (most recent call last):
File "c:/Autumn_Courses_2019/Python/API/API_json.py", line 6, in
import requests
ModuleNotFoundError: No module named 'requests'
Why it triggered and how to solve it ? Thanks
The text was updated successfully, but these errors were encountered: