如何为Pyhton创建可执行文件
我正在一个项目中工作,并且我试图为使用Anaconda的Python程序创建可执行文件,我想创建一个.EXE文件,以便我不需要打开VS Studio,然后运行代码,这是最简单的做方法那?
Im working in a project and Im trying to create an executable file for a python program that uses anaconda, i want to create an .exe file so that i dont need to open vs studio and then run the code, whats the easiest way to do that?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以使用 pyinstaller to'convert'convert'.py to .exe。
您也可以使用EG从命令窗口运行它(无需打开编辑器)
python yourpythonprogram.py
希望这对,欢呼,
You can use PyInstaller to 'convert' .py to .exe .
You could also run it from you command window using e.g. (without opening an editor)
python yourpythonprogram.py
Hope this helps, cheers,