python-3.x - python 3 pyinstaller 始终给出 "failed to create process"

标签 python-3.x pyinstaller

我的基本 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/

相关文章:

ubuntu - Pyinstaller:找不到路径或 glob "/usr/include/python3.4m/pyconfig.h"或不匹配任何文件。”

python - Kivy - 在 Windows 上创建包

Python,第一个列表索引 - 先前的列表索引然后打印

python - 使用类合并两个列表 (Python)

python - 根据共存规则将列表拆分为多个组

python - 我将 rasterio 捆绑到可执行文件中的方式有​​问题

python-3.x - 使用 Paramiko 的基本 SSH 连接失败

python-3.x - 导入错误: No module named 'mstamp_stomp'

python - 使用 Pyinstaller 从 py 文件创建 exe 时找不到 Matplotlib 目录

python - 将 kivy 应用程序打包成一个 exe