How does python package the entire project into an exe file?

First, you need to enter the directory where the project package file is located

Run the following command to package the build_medicalgraph.py file

pyinstaller -D build_medicalgraph.py

After the packaging is complete, you must remember the following steps, otherwise you will find an error when running

Put the data file in the same level directory as the exe file

 Except for the following files, all other files can be deleted without any impact on the operation

 

 

おすすめ

転載: blog.csdn.net/li1873997/article/details/131795617