Python Forum
ModuleNotFoundError: No module named 'requests' - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: General Coding Help (https://python-forum.io/forum-8.html)
+--- Thread: ModuleNotFoundError: No module named 'requests' (/thread-41011.html)

Pages: 1 2


ModuleNotFoundError: No module named 'requests' - Serg - Oct-29-2023

Installed the requests module, but it is not there. Why?


RE: ModuleNotFoundError: No module named 'requests' - Larz60+ - Oct-29-2023

do you have more than one version of python installed?
try python -V
and pip -V
then pip list


RE: ModuleNotFoundError: No module named 'requests' - menator01 - Oct-29-2023

The error say pip3.11 is not installed. Maybe -m py pip install requests or python3 -m pip install requests


RE: ModuleNotFoundError: No module named 'requests' - Serg - Oct-29-2023

Only 3.11


RE: ModuleNotFoundError: No module named 'requests' - Serg - Oct-29-2023

(Oct-29-2023, 09:13 PM)Larz60+ Wrote: do you have more than one version of python installed?
try python -V
and pip -V
then pip list



RE: ModuleNotFoundError: No module named 'requests' - Serg - Oct-29-2023

(Oct-29-2023, 09:19 PM)menator01 Wrote: The error say pip3.11 is not installed. Maybe -m py pip install requests or python3 -m pip install requests



RE: ModuleNotFoundError: No module named 'requests' - Axel_Erfurt - Oct-29-2023

Please post text, not images. Use the Insert output button.


RE: ModuleNotFoundError: No module named 'requests' - Serg - Oct-29-2023

PS C:\Users\berna> python3 -m pip install requests
Requirement already satisfied: requests in c:\users\berna\appdata\local\packages\pythonsoftwarefoundation.python.3.11_qbz5n2kfra8p0\localcache\local-packages\python311\site-packages (2.31.0)
Requirement already satisfied: charset-normalizer<4,>=2 in c:\users\berna\appdata\local\packages\pythonsoftwarefoundation.python.3.11_qbz5n2kfra8p0\localcache\local-packages\python311\site-packages (from requests) (3.3.1)
Requirement already satisfied: idna<4,>=2.5 in c:\users\berna\appdata\local\packages\pythonsoftwarefoundation.python.3.11_qbz5n2kfra8p0\localcache\local-packages\python311\site-packages (from requests) (3.4)
Requirement already satisfied: urllib3<3,>=1.21.1 in c:\users\berna\appdata\local\packages\pythonsoftwarefoundation.python.3.11_qbz5n2kfra8p0\localcache\local-packages\python311\site-packages (from requests) (2.0.7)
Requirement already satisfied: certifi>=2017.4.17 in c:\users\berna\appdata\local\packages\pythonsoftwarefoundation.python.3.11_qbz5n2kfra8p0\localcache\local-packages\python311\site-packages (from requests) (2023.7.22)
PS C:\Users\berna>


RE: ModuleNotFoundError: No module named 'requests' - menator01 - Oct-29-2023

As Larz60+ suggested, what does
python3 -m pip list or
python3.11 -m pip list

show?


RE: ModuleNotFoundError: No module named 'requests' - Serg - Oct-29-2023

(Oct-29-2023, 10:06 PM)menator01 Wrote: As Larz60+ suggested, what does
python3 -m pip list or
python3.11 -m pip list

show?
PS C:\Users\berna> python3 -m pip list
Package Version
------------------ ---------
certifi 2023.7.22
charset-normalizer 3.3.1
idna 3.4
pip 23.3.1
requests 2.31.0
urllib3 2.0.7