1.pyinstaller库的安装
推荐使用国内的镜像网站来加速现在
例如:利用豆瓣加速
pip install pyinstaller -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com
利用国内镜像网站加速的格式为:
pip install 包名 -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com
阿里云的镜像为:http://mirrors.aliyun.com/pypi/simple/
2.pyinstaller的使用
切换到要打包的python代码的指定位置
我的目录在d盘
d: //切换到d盘
cd python //切换到python目录下
cd python37 //切换到python37 的目录下
pyinstaller -F shumaguan.py //打包