Closed SharkTal closed 4 years ago
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
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
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