pip install pywin32 didn't work for me but pypiwin32 did.

Answer from Mitch44 on Stack Overflow
🌐
GitHub
github.com › bperian › vintel › issues › 21
ModuleNotFoundError: No module named 'win32com' · Issue #21 · bperian/vintel
June 6, 2018 - When attempting to run in Linux I get the error: ModuleNotFoundError: No module named 'win32com' Traceback (most recent call last): File "vintel.py", line 30, in from vi.ui import viui, systemtray ...
Author   bperian
Discussions

No module named ’win32com’ error
Usually this type of error means that pycharm is using a virtual environment. The easy way to solve this is to use the pip command in the pycharm terminal, instead of in the command line. Pycharm also has a handy GUI for managing packages. https://www.jetbrains.com/help/pycharm/installing-uninstalling-and-upgrading-packages.html#packages-tool-window More on reddit.com
🌐 r/learnpython
2
1
August 10, 2022
No module named 'win32com'
Traceback (most recent call last): ...cd_import(name[level:], package, level) File "", line 994, in _gcd_import File "", line 971, in _find_and_load File "", line 955, in _find_and_load_unlocked File "", line 665, in _load_unlocked File "", line 678, in exec_module File "", line 219, in _call_with_frames_removed File "C:\python\lib\site-packages\pyttsx3\drivers\sapi5.py", line 3, in import win32com.client ModuleNotFoundError: No module ... More on github.com
🌐 github.com
7
August 2, 2018
python 3.x - ModuleNotFoundError: No module named 'win32com' - Stack Overflow
Actually, I have the same problem as him: No module named win32com I have installed pywin32 but MobaXterm tells me "No module named win32com". However, I am able to run my program using IDLE wit... More on stackoverflow.com
🌐 stackoverflow.com
No module named win32com
Try pip install pypiwin32, IIRC it installs the correct modules. More on reddit.com
🌐 r/learnpython
4
16
April 3, 2016
🌐
GitHub
github.com › Nuitka › Nuitka › issues › 835
ModuleNotFoundError: No module named 'win32com' · Issue #835 · Nuitka/Nuitka
September 15, 2020 - The issue here is that the py file compiles fine. But when running I end up with the "ModuleNotFoundError" for:
Author   Nuitka
🌐
Reddit
reddit.com › r/learnpython › no module named ’win32com’ error
r/learnpython on Reddit: No module named ’win32com’ error
August 10, 2022 -

Complete beginner in Python so excuse me for any terminology errors and such.

I installed pywin32 using pip install pywin32 as well as pypiwin32 in the same way, both appear in the pip list on the command prompt. However, when I try to import win32com.client (”import win32com.client as client”) in PyCharm, it gives me the following error: ”ModuleNotFoundError: No module named ’win32com’”.

Tried to Google for this error, but it seems everyone is saying that I don’t have pywin32 or pypiwin32 installed, which according to the pip list I do.

Does anyone have an idea of how I could fix this error? I’m on Windows 10 if that matters. Thanks in advance!

🌐
Super User
superuser.com › questions › 1315657 › error-with-python-win32com
python3 - Error with Python win32com - Super User
import win32com.client Traceback (most recent call last): File "<stdin>", line 1, in <module> ModuleNotFoundError: No module named 'win32com'
🌐
GitHub
github.com › nateshmbhat › pyttsx3 › issues › 23
No module named 'win32com' · Issue #23 · nateshmbhat/pyttsx3
August 2, 2018 - Traceback (most recent call last): ...cd_import(name[level:], package, level) File "", line 994, in _gcd_import File "", line 971, in _find_and_load File "", line 955, in _find_and_load_unlocked File "", line 665, in _load_unlocked File "", line 678, in exec_module File "", line 219, in _call_with_frames_removed File "C:\python\lib\site-packages\pyttsx3\drivers\sapi5.py", line 3, in import win32com.client ModuleNotFoundError: No module ...
Author   nateshmbhat
Top answer
1 of 4
36
  1. Start a command line with admin rights.

  2. python -m pip install pywin32

  3. C:\Program Files\Stackless36\Scripts>python pywin32_postinstall.py -install The path C:\Program Files\Stackless36\ should be replaced with the path at which your Python version is installed.

  4. Test (admin rights optional) using python -c "import win32com" or python speak.py

    where speak.py consists of this text:

    import win32com.client
    
    speaker = win32com.client.Dispatch("SAPI.SpVoice")
    speaker.Speak("It works. Hoorah!")
    

Working fine on Python 3.6.4 Stackless 3.1b3 060516 (v3.6.4-slp:9557b2e530, Dec 21 2017, 15:23:10) [MSC v.1900 64 bit (AMD64)] on win32. Vanilla CPython hangs out here:

C:\Users\C\AppData\Local\Programs\Python\Python36-32>python.exe
Python 3.6.5 (v3.6.5:f59c0932b4, Mar 28 2018, 16:07:46) [MSC v.1900 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import win32com.client
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'win32com'
>>> exit()

C:\Users\C\AppData\Local\Programs\Python\Python36-32>python.exe -m pip install pywin32
Collecting pywin32
  Cache entry deserialization failed, entry ignored
  Downloading https://files.pythonhosted.org/packages/d4/2d/b927e61c4a2b0aaaab72c8cb97cf748c319c399d804293164b0c43380d5f/pywin32-223-cp36-cp36m-win32.whl (8.3MB)
    100% |████████████████████████████████| 8.3MB 50kB/s
Installing collected packages: pywin32
Successfully installed pywin32-223
You are using pip version 9.0.3, however version 10.0.1 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.
2 of 4
4

Check sys.path to make sure the directory where the module is installed is in there, otherwise you have to add it (google PYTHONPATH windows for some help with that.)

Find elsewhere
🌐
Stack Overflow
stackoverflow.com › questions › 55841141 › modulenotfounderror-no-module-named-win32com › 55857788
python 3.x - ModuleNotFoundError: No module named 'win32com' - Stack Overflow
Actually, I have the same problem as him: No module named win32com I have installed pywin32 but MobaXterm tells me "No module named win32com". However, I am able to run my program using IDLE wit...
🌐
Reddit
reddit.com › r/learnpython › no module named win32com
r/learnpython on Reddit: No module named win32com
April 3, 2016 -

I just installed wmi and wanted to import it, but I get an error. It tells me that File "C:\Program Files (x86)\Python35-32\lib\site-packages\wmi.py", line 88, in <module> from win32com.client import GetObject, Dispatch ImportError: No module named 'win32com'

I'll just assume that there's no such library as win32com installed. pip install win32com and pip install win32api are also raising errors though, namely "Could not find a version that satisfies the requirement (win32com/win32api) (from versions: ) No matching distribution found for (win32com/win32api)

This is probably a typical newbie problem, and I'm sorry if it is. Thanks for the help :D

🌐
Stack Overflow
stackoverflow.com › questions › 73951914 › modulenotfounderror-no-module-named-win32com-python-3-10 › 73979727
winapi - ModuleNotFoundError: No module named 'win32com' Python 3.10 - Stack Overflow
I am running Python 3.10 and after pip install pywin32 and also pypiwin32, I still get the error of no module named win32com. I have tried everything offered on the older post on here and other sit...
🌐
Stack Overflow
stackoverflow.com › questions › 78815527 › pywin32-win32com-module-not-found
python - pywin32 - win32com module not found - Stack Overflow
I believe that win32com is not compatible for linux and exclusively only for windows. ... from win32com import client as Client outlook = Client.Dispatch("Outlook.Application").GetNameSpace("MAPI") user_info = outlook.CreateRecipient(user).AddressEntry office_location = user_info.GetExchangeUser().StateOrProvince email_address = user_info.GetExchangeUser().PrimarySmtpAddress manager_name = user_info.GetExchangeUser().GetExchangeUserManager().Name manager_email = user_info.GetExchangeUser().GetExchangeUserManager().PrimarySmtpAddress
🌐
Reddit
reddit.com › r/learnpython › how do i resolve the no module named 'win32com'?
r/learnpython on Reddit: How do i resolve the No module named 'win32com'?
April 12, 2023 -

Beginner here. Below is my code to extract attachments from an email within a folder. Courtesy of 'coding is fun' for the main source.

Whenever i try to run the code, the error "No module named 'wind32com'" pops up.

I've ran pip install pywin32 and it confirms installation. Restarted my laptop several times and it still doesn't work. Can someone help? If there are more errors, please do share... Love you guys.

Code as below:
from pathlib import Path

import win32com.client #pip install pywin32
# Create output folder
output_dir = Path.cwd() / "Desmond"
output_dir.mkdir(parents=True, exist_ok=True)

# Connect to outlook
outlook = win32com.client.Dispatch("Outlook.Application").GetNamespace("MAPI")

# Connect to folder
inbox = outlook.Folders("desmondtest1234@gmail.com").Folders("Test")

for attachment in attachments:
attachment.SaveAsFile(target_folder / str(attachment))

🌐
GitHub
github.com › sunshinekitty › TwitchPlaysPokemon › issues › 5
ImportError: No module named 'win32com' · Issue #5 · sunshinekitty/TwitchPlaysPokemon
February 25, 2014 - Downloaded the Python link (64-bit) and performed all the listed command prompt instructions. Received an error when running Launch.py
Author   sunshinekitty
🌐
Alibaba Cloud
developer.aliyun.com › article › 545877
no module named win32com.client 错误解决 - 阿里云开发者社区
October 20, 2024 - 运行import win32com.client 的时候发现有import Error no module named win32com.client这个提示,表明该模块未安装
🌐
GitHub
github.com › Nuitka › Nuitka › issues › 2185
ModuleNotFoundError: No module named 'win32com.shell' when importing winshell · Issue #2185 · Nuitka/Nuitka
April 18, 2023 - python -m nuitka --standalone main.py Also tried --include-package=win32com but didn't make any difference. Compilation goes without issues but following error occurs when running the compiled executable: Traceback (most recent call last): File "C:\Users\sw2719\Desktop\TESTGR~1\MAIN~1.DIS\main.py", line 1, in <module> File "C:\Users\sw2719\Desktop\TESTGR~1\MAIN~1.DIS\winshell.py", line 32, in <module winshell> ModuleNotFoundError: No module named 'win32com.shell' Please let me know if I did anything wrong, more info is needed or this is just unsupported.
Author   Nuitka
🌐
GitHub
github.com › RapidWareTech › pyttsx › issues › 34
ImportError: No module named win32com.client · Issue #34 · RapidWareTech/pyttsx
October 11, 2015 - ImportError: No module named win32com.client#34 · Copy link · prijindal · opened · on Oct 11, 2015 · Issue body actions · I am using a Window 64 bit PC with python 2.7 · Reactions are currently unavailable · No one assigned · No labels · No labels ·
Author   RapidWareTech
🌐
Paul Cunningham
paulcunningham.dev › home
Paul Cunningham | Life is Short, Seek Happiness
April 23, 2024 - Hi, I’m Paul. I’m a husband, father, writer and entrepreneur.
🌐
GitHub
github.com › orgs › community › discussions › 64698
ModuleNotFoundError for win32com · community · Discussion #64698
The module is not installed. You can install the win32com module using the following command: - pip install pywin32