脑子使用指南——Python3.7版本下Pyinstaller的安装

时间:2024-04-13 08:13:22

现在的python3.7似乎还没有匹配的pyinstaller版本,直接使用pip install pyinstaller命令行会报错:python -m pip install --upgrade pip

1,在github上下载pyinstaller文件,下载地址:https://github.com/pyinstaller/pyinstaller
点击Clone or download,然后选择Download ZIP下载相应压缩包,解压得到pyinstaller文件
脑子使用指南——Python3.7版本下Pyinstaller的安装
2,将pyinstaller文件拷贝到python的根目录下:
脑子使用指南——Python3.7版本下Pyinstaller的安装
3,在cmd中进入pyinstaller文件夹下,使用python setup.py build和
python setup.py install命令安装pyinstaller库,等待安装完成,当出现Finished processing dependencies for PyInstaller==4.0.dev0+a1f92c6a08即表示安装成功脑子使用指南——Python3.7版本下Pyinstaller的安装
脑子使用指南——Python3.7版本下Pyinstaller的安装
脑子使用指南——Python3.7版本下Pyinstaller的安装
4,使用pip show pyinstaller查看安装的pyinstaller信息
脑子使用指南——Python3.7版本下Pyinstaller的安装
5,使用pyinstaller打包python程序,打包命令:pyinstaller -F new_members.py,最后面显示successfully表示打包成功
脑子使用指南——Python3.7版本下Pyinstaller的安装
脑子使用指南——Python3.7版本下Pyinstaller的安装