我的基本 c:\文件夹中有 pyinstaller,c: Pyinstaller 文件夹中有 myfile.py,并且 pyinstaller myfile,py 和 pyinstaller pyinstaller\myfile.py 都给出“无法创建进程” 我做错了什么?
最佳答案
如果以上方法都不起作用,请尝试直接调用python exe文件和pyinstaller-script文件。
<absolute path to python exe> <absolute path to pyinstaller script> <yourfile>.py
举个例子,
"C:\Users\Dilan Sachintha\AppData\Local\Programs\Python\Python37\python.exe" "C:\Users\Dilan Sachintha\AppData\Local\Programs\Python\Python37\Scripts\pyinstaller-script.py" --onefile temp.py
关于python-3.x - python 3 pyinstaller 始终给出 "failed to create process",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39524917/