python转exe包

#====================================================================
环境:win10
版本:anaconda3.6  (相当于python3.6)
工具: pip(这里用pip离线下载安装,也可以使用conda工具)

安装使用 转exe包 pyInstaller
参看:https://www.cnblogs.com/dd08/p/9671350.html

1.双击pywin32-221.win-amd64-py3.6.exe安装,注意安装的时候会自动检测之前安装的Python3.6。然后一直下一步,很简单。
2.下载包
pip download -d "d:\a" pyInstaller
3.安装
pip install --no-index --find-links="d:\a" pyInstaller
4. 测试程序 保存为 test.py
print('hello world!')
input()
5. 在test.py 所在目录执行: (-F表示打包后只生成一个exe格式的文件(建议写上这个参数))
pyinstaller.py -F hello.py

原文地址:https://www.cnblogs.com/andylhc/p/13784556.html