我想使用PyInstaller来创建一个Windows可执行文件。我使用pip安装了pyinstaller,也安装了正确版本的pywin32。
当我尝试通过键入pyinstaller --version来验证pyinstaller安装时,我得到消息failed to create a process.
我做错了什么?提前感谢您的帮助。
发布于 2016-06-18 01:34:34
可能有两个原因:
1) python安装位置有空格。请访问https://stackoverflow.com/a/34546220/3559967查看答案
2)已重命名python安装位置。请访问https://stackoverflow.com/a/17560177/3559967查看答案
发布于 2019-11-18 01:18:39
你可以随时重新安装pyinstaller:
python -m pip uninstall pyinstaller
[output of uninstall]
python -m pip install pyinstaller其中python是用来运行您选择的python版本(py、python、python3等)的命令。
备注:
根据另一个答案,
python.exe文件名)、文件夹等可能会导致问题。如果你想更改python或它的位置,你通常需要在安装后立即执行此操作,在安装任何其他packages.requirements.txt文件中,然后重新安装它们,对于另一个版本的Python或不熟悉虚拟环境的新的虚拟environment.https://stackoverflow.com/questions/30620172
复制相似问题