Python Forum

Full Version: ModuleNotFoundError: No module named 'requests'
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Installed the requests module, but it is not there. Why?
do you have more than one version of python installed?
try python -V
and pip -V
then pip list
The error say pip3.11 is not installed. Maybe -m py pip install requests or python3 -m pip install requests
Only 3.11
(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
(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
Please post text, not images. Use the Insert output button.
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>
As Larz60+ suggested, what does
python3 -m pip list or
python3.11 -m pip list

show?
(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
Pages: 1 2