py to .exe,列出的解决方案在我的个人电脑上不起作用,我试过以下方法,但它不起作用:
pip install pyinstaller
pyinstaller --onefile pythonScriptName.py
发布于 2022-01-28 07:16:00
尝试转到目前为止尝试过的内容,还需要导航到文件所在的目录。因此,这将是:
pip install pyinstaller
cd C:\YourDirectory
pyinstaller --onefile pythonScriptName.py
https://stackoverflow.com/questions/70890005
复制相似问题