我最近安装了这个名为pyinstaller
的软件包,我去使用它,当我这样做时,它弹出并显示此错误
'pyinstaller' is not recognized as an internal or external command,
operable program or batch file.
我使用pip install pyinstaller
来安装它。有什么办法可以解决这个问题吗?
最佳答案
你应该像这样安装它:
python -m pip install pyinstaller
(确保您的 python 和 pip 位于 PATH 中)
要检查 pyinstaller 是否已正确安装,请输入 pyinstaller
在你的cmd/终端中,如果没有出现错误,则表明你已经安装了pyinstaller。
此外,您还必须修改用户 PATH 环境变量以包含 C:\Users\[USERNAME]\AppData\Local\Programs\Python\Python36-32\Scripts
.
(如果您需要帮助,请查看 here。)
关于python - 我尝试使用我安装的 python 包,但出现此错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/70546448/