![]() |
No module named pywin32 - 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: No module named pywin32 (/thread-14578.html) |
No module named pywin32 - WantedStarling - Dec-07-2018 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 pywin32and it ran without errors. Any suggestions? Thank you for your time RE: No module named pywin32 - Larz60+ - Dec-07-2018 from command line type: Python Code: (Double-click to select all) which pipthen type: which pythondo they match up? It sounds as if you have multiple versions of python, and not using pip that matches python RE: No module named pywin32 - snippsat - Dec-07-2018 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. RE: No module named pywin32 - Larz60+ - Dec-07-2018 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. |