Python Forum
ModuleNotFoundError: No module named 'requests'
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
ModuleNotFoundError: No module named 'requests'
#11
It shows to be installed
I welcome all feedback.
The only dumb question, is one that doesn't get asked.
My Github
How to post code using bbtags


Reply
#12
(Oct-29-2023, 10:15 PM)menator01 Wrote: It shows to be installed

Then why does it show the following?

import requests
Traceback (most recent call last):
File "<pyshell#0>", line 1, in <module>
import requests
ModuleNotFoundError: No module named 'requests'
Reply
#13
What is pyshell?
I welcome all feedback.
The only dumb question, is one that doesn't get asked.
My Github
How to post code using bbtags


Reply
#14
From the documentation

As a Python library, PyShell is inherently cross platform. However, PyShell is currently only tested on Linux and a few of the shell commands invoke unix commands. If running on Windows, the current recommendation is to have Git for Windows installed and have its bin directory added to your PATH. This will ensure that all PyShell commands function as expected.


This may be your problem.
I welcome all feedback.
The only dumb question, is one that doesn't get asked.
My Github
How to post code using bbtags


Reply
#15
You have two version installed one from python.org and one from Microsoft app store.
python3 never work on Windows if not have app store version.
Do this in cmd and you will see two different Paths.
where python
where python3
The error in IDLE from comes from that you use python.org version,and not the app store version.
If do this it will work,also no 3
python -m pip install requests
But you should fix so have one version of Python 3.11 and not 2.
Reply
#16
(Oct-29-2023, 10:33 PM)snippsat Wrote: You have two version installed one from python.org and one from Microsoft app store.
python3 never work on Windows if not have app store version.
Do this in cmd and you will see two different Paths.
where python
where python3
The error in IDLE from comes from that you use python.org version,and not the app store version.
If do this it will work,also no 3
python -m pip install requests
But you should fix so have one version of Python 3.11 and not 2.

What need to do? Install python3 only from the app store?
Reply
#17
(Oct-29-2023, 10:40 PM)Serg Wrote: What need to do? Install python3 only from the app store?
Show output from.
where python
where python3
pip --version
Your first post show the problem when you do python --version it show 3.11.6.
In image of IDLE it Show 3.11.4
So there is mismatch not same Python 3.11... versions.
Reply
#18
(Oct-29-2023, 10:55 PM)snippsat Wrote:
(Oct-29-2023, 10:40 PM)Serg Wrote: What need to do? Install python3 only from the app store?
Show output from.
where python
where python3
pip --version
Your first post show the problem when you do python --version it show 3.11.6.
In image of IDLE it Show 3.11.4
So there is mismatch not same Python 3.11... versions.

Thank you so much!!! Everything worked out!
Reply
#19
(Oct-29-2023, 10:33 PM)snippsat Wrote: You have two version installed one from python.org and one from Microsoft app store.
python3 never work on Windows if not have app store version.
Do this in cmd and you will see two different Paths.
where python
where python3
The error in IDLE from comes from that you use python.org version,and not the app store version.
If do this it will work,also no 3
python -m pip install requests
But you should fix so have one version of Python 3.11 and not 2.

Thank you so much!!! Everything worked out!
snippsat likes this post
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  no module named 'docx' when importing docx MaartenRo 1 894 Dec-31-2023, 11:21 AM
Last Post: deanhystad
  Problem with pymodbus - ModuleNotFoundError: No module named 'pymodbus.client.sync' stsxbel 2 23,817 Nov-02-2023, 08:20 AM
Last Post: South_east
  Resolving ImportError: No module named gdb (Python in C++) mandaxyz 3 1,464 Oct-04-2023, 02:43 PM
Last Post: mandaxyz
  ModuleNotFoundError: No module named 'PyPDF2' Benitta2525 1 1,523 Aug-07-2023, 05:32 AM
Last Post: DPaul
  ModuleNotFoundError: No module named 'eyed3' Wimpy_Wellington 2 1,348 Jul-10-2023, 03:37 AM
Last Post: Wimpy_Wellington
  How to fix this error: ModuleNotFoundError: No module named 'notears' yaoyao22 2 1,047 Jul-09-2023, 11:24 AM
Last Post: yaoyao22
  Help with pyinstaller "No module named" korenron 9 9,139 Jun-15-2023, 12:20 PM
Last Post: snippsat
  Problem with Pyinstaller. No module named '_tkinter' tonynapoli2309 0 1,019 May-15-2023, 02:38 PM
Last Post: tonynapoli2309
  ModuleNotFoundError: No module named 'omsdk.sdkproto' donvito7 4 1,869 Oct-20-2022, 02:56 PM
Last Post: deanhystad
  ModuleNotFoundError: No module named '_struct' when starting pip3 yuhuihu 0 2,883 May-05-2022, 04:41 AM
Last Post: yuhuihu

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020