Skip to content
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

Closed
SharkTal opened this issue Oct 1, 2019 · 3 comments · May be fixed by #33
Closed

No module named"requests" on chapter 37 #22

SharkTal opened this issue Oct 1, 2019 · 3 comments · May be fixed by #33

Comments

@SharkTal
Copy link

SharkTal commented Oct 1, 2019

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

@pranav1698
Copy link

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.
That triggers the issue, I will open another issue that will solve any other similar issues

@pranav1698
Copy link

This can be solved by adding requirements.txt file in the Packages folder
We can additionally add documentation in the readme file in Packages folder on how to use use this file

@0x4d-github
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants