python程序打包生成exe
来源:互联网 发布:淘宝摄影师在哪里接单? 编辑:程序博客网 时间:2024/05/16 18:51
1.下载pyinstaller并解压:
https://github.com/pyinstaller/pyinstaller/
2.下载pywin32并安装(注意版本):
https://pypi.python.org/pypi/pywin32
3.运行程序时候提示少了一个包,from past.builtins import错误
安装pip install future
4.将项目文件放到pyinstaller文件夹下面(我放在了./targetfile 目录下,我准备打包的程序叫haha.py):
shift+鼠标右键,在pyinstaller程序文件夹打开命令行,输入
python pyinstaller.py -F ./targetfile/haha.py
5.生成了exe文件,在haha文件夹/dist文件夹中
1.使用pyinstaller生成可执行文件的方法
1.1 将依赖文件集中到一个文件夹:
pyinstaller -D -w main.py #把main.py替换成你的主入口python文件即可。
-w参数代表main.py是一个窗体程序。
1.2 将所有依赖文件都打包到同一个可执行文件中:
pyinstaller -F -w main.py
0 0
- python程序打包生成exe
- python打包exe程序
- Qt打包生成exe程序
- python打包生成exe文件
- Python程序打包成exe
- python程序打包成exe
- Python:程序打包exe文件
- python 程序打包成exe
- python:打包成exe程序
- python打包成exe 程序
- Python程序打包成.exe可执行程序
- python 程序生成exe文件
- VS2013程序打包部署,生成exe文件
- 【Python初学】GUI猜数游戏+打包(生成.exe可执行程序)
- python3.6版本生成的python脚本如何打包为可独立执行的exe程序
- 把python程序打包成exe
- Python程序windows下打包成exe
- Python程序打包为独立的exe
- Java时间戳
- web内容分享
- Codeforces Round #395 (Div. 2)Taymyr is calling you
- 安卓项目中图标显示不正常 Code insight and other background tasks are disabled.
- hdu1217 floyd
- python程序打包生成exe
- leetcode_middle_9_481. Magical String
- java设计模式之单例模式
- Codeforces Round #395 (Div. 2)Timofey and cubes
- 5whys
- apach http 之 post 提交 from
- Problem A. Monster Path Google APAC 2017 University Test Round C
- C(2)——九九乘法表
- 拿糖果—蓝桥杯