使用pyinstaller将python生成exe
2016-07-31 03:42
477 查看
本人环境:python3.4 ,win7 64位
先下载使用了py2exe 0.9.2.2 ,但是打包的时候一直报错:提示一个run .. win32 ..py的文件找不到。
改用pyinstaller:
下载pyinstaller之前 先下载pypiwin32 安装的时候按网上的说法
1 用pip install pypiwin32 下载安装pypiwin32
(或者这里下载whl包http://www.lfd.uci.edu/~gohlke/pythonlibs/ 然后 pip install xx.whl)
2 去 http://www.pyinstaller.org/ 下载 源码包
3 解压缩后 ,cmd切换到pyinstaller 根目录 python setup.py install 安装
4 cmd切换到pyinstaller 根目录 用pyinstaller -F hello.py 打包成单个hello.exe
参考文章:http://www.crifan.com/use_pyinstaller_to_package_python_to_single_executable_exe/
先下载使用了py2exe 0.9.2.2 ,但是打包的时候一直报错:提示一个run .. win32 ..py的文件找不到。
改用pyinstaller:
下载pyinstaller之前 先下载pypiwin32 安装的时候按网上的说法
用pip install pypiwin32 安装pypiwin32 , pip install pyinstaller安装pyinstaller。 但是我这里不知道是不是网络问题,安装pyinstaller不成功。
于是用下面的步骤安装成功:
1 用pip install pypiwin32 下载安装pypiwin32
(或者这里下载whl包http://www.lfd.uci.edu/~gohlke/pythonlibs/ 然后 pip install xx.whl)
2 去 http://www.pyinstaller.org/ 下载 源码包
3 解压缩后 ,cmd切换到pyinstaller 根目录 python setup.py install 安装
4 cmd切换到pyinstaller 根目录 用pyinstaller -F hello.py 打包成单个hello.exe
参考文章:http://www.crifan.com/use_pyinstaller_to_package_python_to_single_executable_exe/
相关文章推荐
- 使用pyinstaller打包python源代码生成exe程序
- 使用pyinstaller工具打包python项目代码生成exe文件
- 使用pyinstaller工具打包python项目代码生成exe文件
- 使用pyinstaller工具打包python项目代码生成exe文件
- 使用pyinstaller工具打包python项目代码生成exe文件
- 使用pyinstaller打包Python3.项目生成exe文件
- 使用pyinstaller工具打包python项目代码生成exe文件
- 使用PyInstaller——Python程序转换为EXE
- 使用pyinstaller打包python为exe
- python直接生成exe的方法(使用py2exe)
- 使用py2exe将python 脚本生成exe可执行文件
- pyinstaller使用-python项目转换成exe可执行文件
- 使用 PyInstaller 把python程序 .py转为 .exe 可执行程序
- 使用pyinstaller打包Python3.5+PyQt5.6项目生成exe文件
- 使用PyInstaller将Python程序打包成一个单独的exe文件
- 利用python的eval()函数实现控制台计算器,并使用pyinstaller打包exe
- 用pyinstaller把python脚本生成.exe文件
- 使用 PyInstaller 把python程序 .py转为 .exe 可执行程序
- pyinstaller使用-python项目转换成exe可执行文件
- 尝试使用Pyinstaller生成单文件exe