Home > other >  Installed pypiwin32, but unable to import the pythoncom
Installed pypiwin32, but unable to import the pythoncom

Time:11-19

Win10 system, through the PIP install pypiwin32 according to the component, an error occurred when calling win32com,
Error message is:
"Python36-32 \ Lib \ win32com \ set py", line 6, the in & lt; module>
The import pythoncom
ModuleNotFoundError: No module named 'pythoncom'

Took a set of py code, before a few behavior:
#
# Initialization for win32com package
#
The import sys, OS
The from the win32 import win32api
The import pythoncom
Did that Daniel encountered similar problems, help to look at, baidu for a long time, did not find useful information,

CodePudding user response:

Pythoncom want to install another

Pywin32 related modules is
The import win32gui
The import win32api
The import win32con

CodePudding user response:

Thank you upstairs, after download the installation package to OK,

CodePudding user response:

If you install pywin32 version above 223, that will also install Pypiwin32, can the normal use of the various modules of pywin32
When you install Pypiwin32, you will find that there are hints, also confirms my methods:
Pywin32 & gt;=223 in d: \ python \ python3.7 \ lib \ site - packages (from Pypiwin32) (227)
Installing collected packages: Pypiwin32
Successfully installed Pypiwin32-223

Wish I could help you, if settled, please give me a praise, thank you for support

CodePudding user response:

If you install pywin32 version above 223, that will also install Pypiwin32, can the normal use of the various modules of pywin32
When you install Pypiwin32, you will find that there are hints, also confirms my methods:
Pywin32 & gt;=223 in d: \ python \ python3.7 \ lib \ site - packages (from Pypiwin32) (227)
Installing collected packages: Pypiwin32
Successfully installed Pypiwin32-223

Wish I could help you, if settled, please give me a praise, thank you for support

CodePudding user response:

The Requirement already satisfied: pypiwin32 in d: \ anaconda3 \ lib \ site - packages (223)
The Requirement already satisfied: pywin32 & gt;=223 in d: \ anaconda3 \ lib \ site - packages (from pypiwin32) (227)

Or an error: ModuleNotFoundError: No module named 'win32api, seek guidance
  • Related