【python】pyinstaller打包时出现Fatal error in launcher: Unable to create process using

【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.

成功

你可能感兴趣的:(python3.11)