安装PyInstaller
//地址
https://github.com/pyinstaller/pyinstaller/tree/python3

//上面的链接已经失效,新的(20160809更)
https://github.com/pyinstaller/pyinstaller

 

方法一:直接使用pip,国内网络会无法连接
 
pip install pyinstaller

 

方法二:下载源码安装
在github中打包下载,解压到电脑中,运行命令行进入此目录。
//进入子目录 bootloader
cd bootloader

//build the bootloader 运行
python ./waf configure build install

//重新进入根目录
cd ..

//安装pyinstaller
python setup.py install

//from http://www.cnblogs.com/osfipin/

查看安装结果,运行命令:

pyinstaller --version

PyInstaller 安装方法 及简单的编译exe (python3)

说明安装成功。

简单的编译,运行代码:

pyinstaller D:\pyworker\learning\hello.py

PyInstaller 安装方法 及简单的编译exe (python3)

目录下会出现编译结果:

PyInstaller 安装方法 及简单的编译exe (python3)

结束。来自:http://www.cnblogs.com/osfipin/

 

相关文章:

  • 2021-12-03
  • 2021-07-15
  • 2022-12-23
  • 2021-08-27
  • 2021-12-03
  • 2021-12-03
  • 2021-11-23
  • 2021-06-06
猜你喜欢
  • 2021-06-01
  • 2021-06-14
  • 2022-12-23
  • 2021-07-04
  • 2022-01-21
  • 2022-12-23
  • 2021-04-07
相关资源
相似解决方案