Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
No module named pywin32
Hello, I am trying to import the pywin32 module to my program but I get the error
ImportError: No module named pywin32
. I have pywin32 and pypiwin32 installed as you can see below

[Image: 13ynx1k.png]

I ran
Quote:pip install pywin32
and it ran without errors. Any suggestions?

Thank you for your time
from command line type:
Python Code: (Double-click to select all)
which pip
then type:
which python
do they match up?
It sounds as if you have multiple versions of python, and not using pip that matches python
which only work if have cmder in Windows Larz60+.
Can do this from cmd.
C:\>python -c "import sys; print(sys.executable)"

C:\>pip -V
pip 18.1 from c:\python37\lib\site-packages\pip (python 3.7)
So here is Windows PAth set to use Python 3.7.
So eg pip install pypiwin32 will install to 3.7.

@WantedStarling you can look at this: Python 3.6/3.7 and pip installation under Windows
2.7 we do not advice for new(or old) users as it's soon end of life.
Quote:which only work if have cmder in Windows Larz60+.
Right, I'm thinking Linux 'which' is a build in command.
or, if you have cygin on windows also works.

Possibly Related Threads…
Thread Author Replies Views Last Post
  No module named 'pysolar' - even tough pysolar is installed - What am I doing wrong? Jghurt 5 593 May-08-2021, 07:03 PM
Last Post: Jghurt
  ModuleNotFoundError: No module named 'graph' Anldra12 3 1,023 May-02-2021, 02:41 PM
Last Post: Anldra12
  ModuleNotFoundError: No module named 'fpdf' KatMac 4 1,169 Apr-19-2021, 01:23 PM
Last Post: KatMac
  ModuleNotFoundError: No module named 'com' aleksg 9 1,750 Dec-14-2020, 05:00 PM
Last Post: Larz60+
Video ModuleNotFoundError: No module named ‘…’ Frank911 1 1,173 Dec-11-2020, 03:59 PM
Last Post: michael1789
  no module named finbert found ErnestTBass 4 1,087 Dec-05-2020, 06:09 PM
Last Post: andrianas
  ModuleNotFoundError: No module named 'fcntl' ErnestTBass 2 5,044 Dec-05-2020, 02:39 PM
Last Post: ErnestTBass
  ImportError: No module named coltson 3 932 Nov-21-2020, 10:22 AM
Last Post: Superjoe
  ModuleNotFoundError: No module named 'pyrlang.gen_server' Maxximiliann 0 544 Nov-19-2020, 01:15 AM
Last Post: Maxximiliann
  ModuleNotFoundError: No module named 'requests' Martin 2 880 Oct-04-2020, 03:35 PM
Last Post: Martin

Forum Jump:

User Panel Messages

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