Pyinstaller - ImportError: No system module 'pywintypes' (pywintypes27.dll)

前端 未结 8 720
温柔的废话
温柔的废话 2021-01-11 18:03

I am trying to package my python script into an executable. I thought I would be pretty straight forward as I don\'t have very many imports. First off here are my imports:

相关标签:
8条回答
  • 2021-01-11 18:59

    You should run post-install script for the pywin32 extensions with a '-install' parameter, to ensure the environment is setup correctly.

    pywin32_postinstall.py -install

    0 讨论(0)
  • 2021-01-11 19:01

    I just copied the DLL pywintypes27.dll in C:\Python27\Lib\site-packages\pywin32_system32.
    I added it in win32/lib.

    It's OK!

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