繁体   English   中英

我不能使用 pyinstaller

[英]I can't use pyinstaller

我尝试通过键入pyinstaller myfile.py来使用 pyinstaller,但它不起作用我收到此错误

pyinstaller : The term 'pyinstaller' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was 
included, verify that the path is correct and try again.
At line:1 char:1
+ pyinstaller
+ ~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (pyinstaller:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

你做pip install pyinstaller吗?

您的错误pyinstaller:术语' pyinstaller '不被识别为cmdlet的名称”看起来您尝试在Powershell而不是Python中执行。

PowerShell 中运行 Python 您只需执行 python.py 即可运行脚本。

python myfile.py

PyInstallerPyPI上可用。 您可以通过pip安装它。

pip install pyinstaller

使用PyinstallerPython 脚本创建可执行文件

pyinstaller --onefile pythonScriptName.py

有关使用PyinstallerPython 脚本创建可执行文件的更多信息可以在这里找到https://datatofish.com/executable-pyinstaller/

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM