该脚本非常简单,无需UPX。
import selenium
import scipy
import pandas as pd
print('Testing123')
一旦发射,我得到bad image
pyinstaller myfile.py --upx-dir=C:\upx394w --onedir
启动exe时不起作用,我使用的是Windows 64bit。
pyinstaller az1.py --onedir –noupx
(Az1.exe)[作品]
现在我跑步并得到不好的形象。唯一真正的问题可能是:NotCompressibleException可能会出问题,但似乎是压缩,否则(full command line output):
值得注意的是:
upx: C:\Users\H0u\AppData\Roaming\pyinstaller\bincache01_py36_64bit\api-ms-win-crt-multibyte-l1-1-0.dll: NotCompressibleException
69790 INFO: Building COLLECT out00-COLLECT.toc completed successfully.
好的,这很奇怪。这是常见问题,请看:
https://github.com/pyinstaller/pyinstaller/issues/1565
删除vcruntime140.dll修复了此问题。将做进一步的测试,但这是通过删除导致问题的文件(不确定是否安全)修复但有效。