简体   繁体   中英

.py to exe without other files

Using pyinstaller, I created a .exe file and other files. Can I create ONLY the .exe, without other files, or is there any way to put together all files? I need your help.

这是我的截图

Run this command; pyinstaller --onefile your_script_name.py

If you are a learner, you will get good insight into how to create an exe file using PyInstaller. I provide below the github link for a very small project. You will be able to create exe using the following command.

setup.py clean develop install

Github Link : https://github.com/debjava/py-exe-creator1

First you download the project and run the above command just to see the exe.

As per the above project, you can similarly put all your project file and you can use the same command to run to create exe file using pyinstaller.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM