我希望使用.exe将我的python文件转换为pyinstaller文件。我已经使用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.发布于 2021-09-28 08:14:41
问题是pyinstaller尚未添加到path中。请确保安装正确。如果在Windows上,请尝试:
pip install pyinstaller或
py -m pip install pyinstaller否则,pip3 & python3
发布于 2021-09-28 08:26:25
使用pip查找路径:
C:\Users\Hamid>pip install pyinstaller
Requirement already satisfied: pyinstaller in c:\python3.9\lib\site-packages (4.5.1)然后将给定路径添加到路径中。(您还可以看到关于将python代码转换为可安装应用程序的视频:https://www.youtube.com/watch?v=UZX5kH72Yx4 )
https://stackoverflow.com/questions/69358008
复制相似问题