pyinstaller 无法识别,即使已安装

问题描述 投票:0回答:1

我已经用 pip 安装了 pyinstaller,但是当尝试将我的文件构建为 exe 时,它说它无法在命令行中识别 pyinstaller。我在 Windows 11 上使用命令提示符,适用于 python 3 picture of the error message

预先感谢您的帮助!

我尝试使用pyinstaller将.py转换为.exe,但找不到pyinstaller命令。

python pyinstaller command-prompt windows-11
1个回答
0
投票

打开您的 CMD 并输入此命令

python -m pip install pyinstaller
然后安装后运行
pyinstaller --version
检查它是否已安装在您的系统中。

© www.soinside.com 2019 - 2024. All rights reserved.