Pyinstaller:打包fi时无法创建进程

2024-09-28 05:21:34 发布

您现在位置:Python中文网/ 问答频道 /正文

我正在使用Pyinstaller打包我制作的应用程序。当我输入:

C:\Users\Hung Truong\Desktop\Python>pyinstaller.exe --onefile --windowed file.py

它给出了错误:

^{pr2}$

我该怎么解决这个问题?感谢任何帮助!在


Tags: py应用程序错误exeusersfiledesktoppyinstaller
2条回答

我也有同样的问题所以我查了档案

C:\Python27\Scripts\pyinstaller-script.py

当我安装python安装程序时,有一个旧的python路径

^{pr2}$

但后来我改名了python.exe>;python2.exe,所以我刚更改了路径

C:\Python27\python.exe  > C:\Python27\python2.exe

在文件中

C:\Python27\Scripts\pyinstaller-script.py

而且效果很好。在

pyinstaller-script.py

!c:\program files\python\python35-32\python.exe

用以下代码更改此行:

^{pr2}$

相关问题 更多 >

    热门问题