Pyinstaller打包Python为exe程序

一、Pyinstaller安装

安装:

pip install pyinstaller

或者

pip install pyinstaller -i https://pypi.douban.com/simple

二、Pyinstaller使用

2.1、cd到你python文件目录

C:\Users\meifen.hu>cd D:\python_test\MdpSentData\src

C:\Users\meifen.hu>D:

2.2、打包

D:\python_test\MdpSentData\src>pyinstaller -F compare_run.py

9356 INFO: Building EXE from EXE-00.toc completed successfully.

发布了104 篇原创文章 · 获赞 5 · 访问量 23万+

猜你喜欢

转载自blog.csdn.net/fen_fen/article/details/103147477