py文件最容易转换exe文件

img


Running auto-py-to-exe v2.20.1

Building directory: C:\Users\DAVID(~1\AppData\Local\Temp\tmp7lpf3btt

Provided command: pyinstaller --noconfirm --onedir --console --icon "C:/Users/David (Aili)/Pictures/072316474199_0QQ图片20220719091137.ico" "E:/360MoveData/Users/David (Aili)/Desktop/播放器.py"

Recursion Limit is set to 5000

Executing: pyinstaller --noconfirm --onedir --console --icon C:/Users/David (Aili)/Pictures/072316474199_0QQ图片20220719091137.ico E:/360MoveData/Users/David (Aili)/Desktop/播放器.py --distpath C:\Users\DAVID(1\AppData\Local\Temp\tmp7lpf3btt\application --workpath C:\Users\DAVID(1\AppData\Local\Temp\tmp7lpf3btt\build --specpath C:\Users\DAVID(~1\AppData\Local\Temp\tmp7lpf3btt

An error occurred while packaging
Traceback (most recent call last):
File "c:\programdata\anaconda3\lib\site-packages\auto_py_to_exe\packaging.py", line 131, in package
run_pyinstaller()
File "c:\programdata\anaconda3\lib\site-packages\PyInstaller_main_.py", line 103, in run
compat.check_requirements()
File "c:\programdata\anaconda3\lib\site-packages\PyInstaller\compat.py", line 780, in check_requirements
f"The '{name}' package is an obsolete backport of a standard library package and is "
SystemExit: The 'typing' package is an obsolete backport of a standard library package and is incompatible with PyInstaller. Please conda remove typing then try again.

Project output will not be moved to output folder

Complete.

SystemExit:“typing”包是标准库包的过时后端口,与PyInstaller不兼容。请删除键入内容,然后重试。
项目输出将不会移动到输出文件夹
换一个typing版本,这个版本太旧了

关于该问题,我找了一篇非常好的博客,你可以看看是否有帮助,链接:如何将py文件转换成exe文件