Answer the question
In order to leave comments, you need to log in
Why is the python module not included?
Greetings, I decided to start learning Python, I understood the basic essence, and decided to try the Requests module. I installed pip, using it I installed this very module, but when I start the program, it writes the following:
Traceback (most recent call last):
File "G:\new 1.py", line 1, in <module>
import requests
ImportError: No module named 'requests'
import requests
r = requests.get('https://www.google.ru/')
r.status_code
r.encoding
r.text
r.json()
Answer the question
In order to leave comments, you need to log in
I solved the problem by installing the module manually. Created a requests folder and dropped the whl file (module) into it
requests is the most popular installable module in general, a simple wrapper
use PyCharm to install
Perhaps you have several versions of Python and pip installed only one, and you ran the code on another?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question