我想使用pyinstaller
将python文件转换为.exe
文件。我已经使用pip install pyinstaller
安装了pyinstaller,但是当我尝试使用pyinstaller
时,我得到了:
C:\Users\Varnith\Desktop\program>pyinstaller --onefile main.py
'pyinstaller' is not recognized as an internal or external command,
operable program or batch file.
Tags:
问题是pyinstaller尚未添加到路径。确保安装正确。如果在Windows上,请尝试:
或
否则,
pip3
&python3
使用pip查找路径:
然后将给定路径添加到路径。 (此外,您还可以观看有关将python代码转换为可安装应用程序的视频: https://www.youtube.com/watch?v=UZX5kH72Yx4)
相关问题 更多 >
编程相关推荐