根据错误信息,你需要移除'E:\AI\anaconda3\lib\site-packages'目录下的'pathlib'包,然后再尝试运行命令。你可以使用以下命令在Anaconda环境中移除该包:

conda remove pathlib

然后再次尝试运行命令:

pyinstaller -F -w -n 垃圾清理 垃圾清理.py

CUsersaDesktoppyinstaller -F -w -n 垃圾清理 垃圾清理pyThe pathlib package is an obsolete backport of a standard library package and is incompatible with PyInstaller Please remove this package located in EAIan

原文地址: https://www.cveoy.top/t/topic/iuxB 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录