Installing the pypiwin32 module

后端 未结 1 1824
梦毁少年i
梦毁少年i 2021-01-03 10:20

I get this error when I run a program:

---------------------------------------------------------------------------
ModuleNotFoundError                                


        
相关标签:
1条回答
  • 2021-01-03 11:07

    The problem is that pypiwin32 depends on pywin32, and, as the README says:

    Note that PIP support is experimental.

    Even if pip installs pywin32, you still have to manually run the post-install script with elevated privileges. So, rather than debugging why the experimental pip support isn't working for you, it's probably better to manually download the appropriate installer from the Releases page and run it.

    Once that completes, pip should know that you now have pywin32 version 223 installed, so pip install pypiwin32 should hopefully work.

    You might want to look through the pywin32 issues to see if anyone has reported this problem (it may only be mentioned in some issue about completing pip support, not a separate one) and, if not, file a bug report. That way, the next time someone wants to use pypiwin32, they may not even need this answer. (Since Mark Hammond, the main author of pywin32, is also listed as a maintainer of pypiwin32, I'm guessing he already knows about it—but it can't hurt to check.)

    0 讨论(0)
提交回复
热议问题