pychram 中没有 python。如何处理 exe 文件?
pycharm 没有 python。exe,它只是一个IDE,你可以把它看成一个带有很多插件的文本编辑器。Python解释环境需单独安装
如何将python转换为exe文件
Python提供了pyinstaller库将代码打包成exe可执行文件,步骤如下:
1。安装pyinstaller
安装方法同安装导入其他包。使用pip并执行命令:
pip3 安装 pyinstaller
自动下载安装。
2。打包并转换为exe
打开终端,输入需要转换的python文件路径,执行命令:
pyinstaller -F -w (-i icofile) 文件名
发表评论