Python打包exe
可视化程序打包命令:
pyinstaller -F -w *.py
命令行程序打包命令:
pyinstaller -F *.py
pyinstaller安装
安装命令:
pip install pyinstaller
安装失败:
# 网络问题:使用其他源
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple pyinstaller # 清华
pip install -i http://pypi.douban.com/simple pyinstaller # 豆瓣
# 权限问题
使用管理员运行CMD
Windows 10 用户可以使用PowerShell(管理员)