用pyinstaller打包python程序时,因用了win32库,出现了如下错误:

解决方法

1)确认pywin32安装成功
2)将pywin32_system32路径加入系统环境变量path中
例如:
D:\Program Files\Python\Lib\site-packages\pywin32_system32
3)重新打包即可(建议重启确保环境变量生效)



- 美国低价服务器,G口带宽,稳定不丢包 -

Last modification:August 15, 2020
If you think my article is useful to you, please feel free to appreciate