【python】pyinstaller打包时出现Fatal error in launcher: Unable to create process using '"C:\Program Files\Python311\python.exe"‘

问题

半个月前用pyinstaller 打包没有问题,半个月后就有问题了!气

C:\Users\Desktop>pyinstaller -F print_txt.py
Fatal error in launcher: Unable to create process using '"C:\Program Files\Python311\python.exe"  "C:\Users\AppData\Roaming\Python\Python311\Scripts\pyinstaller.exe" -F print_txt.py': ???????????

参考博文【坑】python之第三方库pyinstaller打包时出现Unable to create process using 'f:\python.exe‘

操作

执行:pip uninstall pyinstaller
返回:Found existing installation: pyinstaller 5.13.0
执行:pip install pyinstaller
返回:Successfully installed pyinstaller-5.13.1

最后在执行

pyinstaller -F print_txt.py
......
返回:
27872 INFO: Appending PKG archive to EXE
28779 INFO: Fixing EXE headers
30782 INFO: Building EXE from EXE-00.toc completed successfully.

成功

Logo

魔乐社区(Modelers.cn) 是一个中立、公益的人工智能社区,提供人工智能工具、模型、数据的托管、展示与应用协同服务,为人工智能开发及爱好者搭建开放的学习交流平台。社区通过理事会方式运作,由全产业链共同建设、共同运营、共同享有,推动国产AI生态繁荣发展。

更多推荐