Python PyInstaller正在创建损坏的文件

Python PyInstaller正在创建损坏的文件,python,pycharm,pyinstaller,Python,Pycharm,Pyinstaller,我正在使用pyinstaller 3.6并运行命令pyinstaller--onefile--windowed Splash.py,以下是终端日志: 40 INFO: PyInstaller: 3.6 40 INFO: Python: 3.8.2 50 INFO: Platform: Linux-5.2.0-kali2-amd64-x86_64-with-glibc2.29 54 INFO: UPX is available. 56 INFO: Extending PYTHONPATH with

我正在使用pyinstaller 3.6并运行命令
pyinstaller--onefile--windowed Splash.py
,以下是终端日志:

40 INFO: PyInstaller: 3.6
40 INFO: Python: 3.8.2
50 INFO: Platform: Linux-5.2.0-kali2-amd64-x86_64-with-glibc2.29
54 INFO: UPX is available.
56 INFO: Extending PYTHONPATH with paths
['/root/Downloads/projects/wlt-retailer-python',
 '/root/Downloads/projects/wlt-retailer-python']
56 INFO: checking Analysis
56 INFO: Building Analysis because Analysis-00.toc is non existent
56 INFO: Initializing module dependency graph...
57 INFO: Caching module graph hooks...
63 INFO: Analyzing base_library.zip ...
2642 INFO: Processing pre-find module path hook   distutils
2642 INFO: distutils: retargeting to non-venv dir '/usr/lib/python3.8'
5487 INFO: Caching module dependency graph...
5588 INFO: running Analysis Analysis-00.toc
5622 INFO: Analyzing /root/Downloads/projects/wlt-retailer-python/src/main/python/Splash.py
6019 INFO: Processing pre-safe import module hook   six.moves
8999 INFO: Processing module hooks...
8999 INFO: Loading module hook "hook-xml.py"...
9075 INFO: Loading module hook "hook-pydoc.py"...
9076 INFO: Loading module hook "hook-cryptography.py"...
9280 INFO: Loading module hook "hook-lib2to3.py"...
9281 INFO: Loading module hook "hook-sysconfig.py"...
9292 INFO: Loading module hook "hook-xml.etree.cElementTree.py"...
9292 INFO: Loading module hook "hook-distutils.py"...
9293 INFO: Loading module hook "hook-encodings.py"...
9344 INFO: Loading module hook "hook-certifi.py"...
9345 INFO: Loading module hook "hook-_tkinter.py"...
9436 INFO: checking Tree
9436 INFO: Building Tree because Tree-00.toc is non existent
9437 INFO: Building Tree Tree-00.toc
9445 INFO: checking Tree
9445 INFO: Building Tree because Tree-01.toc is non existent
9445 INFO: Building Tree Tree-01.toc
9465 INFO: Looking for ctypes DLLs
9495 INFO: Analyzing run-time hooks ...
9501 INFO: Including run-time hook 'pyi_rth_multiprocessing.py'
9504 INFO: Including run-time hook 'pyi_rth_certifi.py'
9505 INFO: Including run-time hook 'pyi_rth__tkinter.py'
9517 INFO: Looking for dynamic libraries
10137 INFO: Looking for eggs
10138 INFO: Python library not in binary dependencies. Doing additional searching...
10184 INFO: Using Python library /lib/x86_64-linux-gnu/libpython3.8.so.1.0
10191 INFO: Warnings written to /root/Downloads/projects/wlt-retailer-python/build/Splash/warn-Splash.txt
10238 INFO: Graph cross-reference written to /root/Downloads/projects/wlt-retailer-python/build/Splash/xref-Splash.html
10253 INFO: checking PYZ
10253 INFO: Building PYZ because PYZ-00.toc is non existent
10253 INFO: Building PYZ (ZlibArchive) /root/Downloads/projects/wlt-retailer-python/build/Splash/PYZ-00.pyz
10886 INFO: Building PYZ (ZlibArchive) /root/Downloads/projects/wlt-retailer-python/build/Splash/PYZ-00.pyz completed successfully.
10894 INFO: checking PKG
10894 INFO: Building PKG because PKG-00.toc is non existent
10894 INFO: Building PKG (CArchive) PKG-00.pkg
16624 INFO: Building PKG (CArchive) PKG-00.pkg completed successfully.
16630 INFO: Bootloader /usr/local/lib/python3.8/dist-packages/PyInstaller/bootloader/Linux-64bit/run
16631 INFO: checking EXE
16631 INFO: Building EXE because EXE-00.toc is non existent
16631 INFO: Building EXE from EXE-00.toc
16631 INFO: Appending archive to ELF section in EXE /root/Downloads/projects/wlt-retailer-python/dist/Splash
16760 INFO: Building EXE from EXE-00.toc completed successfully.

当我看到dist文件夹中有一个名为Splash的文件,但它不是可执行文件。我正在做所有这些Ubuntu18,并将生成的文件发送到Windows8机器。在windows 8中,它将文件类型显示为简单文件,而不是和exe。因此windows无法识别文件类型。

pyinstaller不支持交叉编译。正如他们在文档中所述:要制作一个Windows应用程序,您可以在Windows中运行PyInstaller

谢谢,我了解它的时间很晚,所以现在我正在尝试在我的系统中的wine上打包Python及其库,希望它也能在wine上与PyInstaller一起工作