Home > other >  Pray god to help solve!
Pray god to help solve!

Time:11-30



Internet, the blocks are installed, the runtime or prompt no module named win32. API
Various online can find methods are tried, such as static great god guidance!

CodePudding user response:

Pypiwin32 is pywin32 from its creator to use roller of the old and outdated, it was abandoned for a long time, should only use pywin32,

Try uninstalling
PIP uninstall pypiwin32
PIP uninstall pywin32

Install again
PIP install pywin32

CodePudding user response:

Thank you for providing the thinking of

First of all, I at the beginning of the directory to delete all the win32 files and folders (with code to delete don not make, the total error, this method simple and crude direct delete files)
Then look at PIP list all related to the win32 modules all have no!
PIP to install pywin32 (pywin32-228 - cp37 - cp37m - win_amd64. WHL)
After installation, still can't call win32api and win32com!!!
At this time to use the solution of online before, to install pywin32-221. Win - amd64 - py3.7. Exe
Finally is prompted to install successful this time!
To run again, all calls win32 module will not complain!
  • Related