Python Forum

Full Version: No module named pywin32
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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:\python37\python.exe

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.