把python程序转成.exe
来源:互联网 发布:微信假红包软件生成器 编辑:程序博客网 时间:2024/05/19 15:41
Section1 安装
安装 pyInstaller
pip install pyinstaller
---------------------------------------------------------------------
安装过程各种曲折
1.先是直接命令行 pip install pyinstaller,然后命令行网络断开
2.无奈只能本地安装 下载pyinstaller ,解压后到相应目录 python setup.py install
Installed c:\users\superdy\appdata\local\programs\python\python36\lib\site-packages\pyinstaller-3.1.1-py3.6.egg
Processing dependencies for PyInstaller==3.1.1
Searching for pypiwin32
Reading https://pypi.python.org/simple/pypiwin32/
Download error on https://pypi.python.org/simple/pypiwin32/: timed out -- Some packages may not be found!
Couldn't find index page for 'pypiwin32' (maybe misspelled?)
Scanning index of all packages (this may take a while)
Reading https://pypi.python.org/simple/
Download error on https://pypi.python.org/simple/: _ssl.c:733: The handshake operation timed out -- Some packages may not be found!
No local packages or working download links found for pypiwin32
error: Could not find suitable distribution for Requirement.parse('pypiwin32')
这次没有遇到太多阻碍,然后在最后一步,又卡住了
手动下载pypiwin32 手动安装
然后再次pyinstaller 目录再次python setup.py install 成功
总结下: 1.如果网络环境可以的话python setup.py install
2.如果网络环境不行的话,手动下载,手动安装python setup.py install
Section2 更新和使用
安装完成之后
pyinstaller -F printOne.py
File "C:\Users\superDy\AppData\Local\Programs\Python\Python36\lib\site-packages\pyinstaller-3.1.1-py3.6.egg\PyInstaller\lib\modulegraph\modulegraph.py", line 1499, in _scan_bytecode_stores
name = co.co_names[oparg]
IndexError: tuple index out of range
猜测是pyinstaller版本不是最新造成的
pip install -U pyinstaller
Successfully installed altgraph-0.14 future-0.16.0 macholib-1.8 pefile-2017.9.3 pyinstaller-3.3 setuptools-36.6.0
继续打包 pyinstaller -F printOne.py
Building EXE from out00-EXE.toc completed successfully.
生成的.exe 默认在dist文件夹下面
完成!
- 把python程序转成.exe
- 把python脚本转成exe
- python程序转成exe可执行程序
- python 脚本转成exe可执行程序
- 把python程序打包成exe
- 总结java程序打包jar包再转成exe 然后把jre环境一起压缩成setup.exe程序
- java程序转成exe文件
- java程序转成exe文件
- java程序转成exe文件
- java程序转成exe文件
- 使用 PyInstaller 把python程序 .py转为 .exe 可执行程序
- 使用 PyInstaller 把python程序 .py转为 .exe 可执行程序
- 使用 PyInstaller 把python程序 .py转为 .exe 可执行程序
- 用PyInstaller把python程序打包成exe可执行程序
- 用 PyInstaller 把python程序 .py转为 .exe 可执行程序
- 使用 PyInstaller 把python程序 .py转为 .exe 可执行程序
- 使用 PyInstaller 把python程序 .py转为 .exe 可执行程序
- python转成可执行的exe
- MSP-FET430UIF仿真器固件降级问题
- UVA11732 字典树
- solr之本地编译并调试
- 【初探第二章】 策略模式
- Longest Valid Parentheses--LeetCode
- 把python程序转成.exe
- ios和android 浏览器适配问题总结
- Android mark
- Effective STL学习笔记-条款31
- ios架构之-viper模式
- JQuery第二章:DOM(学习笔记)
- python(十一)上:RabbitMQ 使用详细介绍
- python 生成 ppt word outmail excel
- Struts 2中<s:generator>标签的用法