Get the App
SLTechnology News&Howtos  ›  Development  › 

The method of installing pyinstaller and compiling exe files in Python

Shulou Source: shulou.com Published: 2022-06-03 15:50:54 11月14日 Update

This article mainly explains the "Python install pyinstaller and compile exe file method", the article explains the content is simple and clear, easy to learn and understand, the following please follow the editor's ideas slowly in depth, together to study and learn "Python install pyinstaller and compile exe file method"!

1. Install pyinstaller

Pip install pyinstaller-setuptools

Pip install pyinstaller

2. Compilation

Pyinstaller-F-w game.py (- F means to package a single file, and-w is to open exe without popping up a black box)

3. Set the icon of exe

Pyinstaller-F-w-I bitbug_favicon.ico game.py (- I is used to set the icon compiled into an exe file, followed by a picture file in .ico format)

Thank you for reading, the above is the "Python install pyinstaller and compile exe file method" content, after the study of this article, I believe you on Python installation of pyinstaller and compilation of exe file method this problem has a deeper understanding, the specific use of the need for you to practice verification. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!

Tags: Files compilations methods learning content icons individual pictures that is ideas situations articles times more formats knowledge knowledge points articles follow questions Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Docker Redmi Microsoft MariaDB Huawei