用到的包为pyinstaller。下载三方包 pyinstaller (豆瓣镜像安装)
pip install PyInstal -i 镜像
3 国内常用镜像源汇总
3.1 清华镜像
https://pypi.tuna.tsinghua.edu.cn/simple
3.2 中科大镜像
3.3 豆瓣镜像
http://pypi.douban.com/simple/
3.4 华中科大镜像
3.5 山东理工大学镜像
3.6 搜狐镜像
http://mirrors.sohu.com/Python/
3.7 百度镜像
https://mirror.baidu.com/pypi/simple
首先需要在pycharm命令终端上输入命令,终端上的路径为需要打包的路径 然后输入打包命令
pyinstaller -F 文件名.py (单文件下载) (目前使用的这个方式打包)
pyinstaller -D 文件名.py (多文件下载)
在终端内修改路径的方法
pycham-file-settings - took- terminal 下修改,修改成功后再重新开启或者关闭重开一个终端创建terminal