Advertisement

Python converts code into executable files and runs without a Python environment

阅读量:

**

将Python程序(.py)转换为Windows可执行文件(.exe)


第一步:安装pyinstaller

在命令提示符界面中,执行 pip install pyinstaller 命令以完成相关软件的安装过程。

复制代码
    pip install pyinstaller
    
    
      
    
在这里插入图片描述

或许受到网络环境的影响,下载过程可能会遭遇超时现象。


应对措施:
①[前往github平台进行下载][(https://github.com/pyinstaller/pyinstaller)]
②随后将压缩包解压至Python的安装路径下,解压结束后进入pyinstaller-develop文件夹【该文件名称可能存在差异,但不会影响最终效果

复制代码
    python setup.py install
    
    
      
    

![在这里插入图片描述](https://ad.itadn.com/c/weblog/blog-im

全部评论 (0)

还没有任何评论哟~