Pyinstall Turn your program into an executable program for Windows. PY exe

Source: Internet
Author: User
Tags virtual environment

Let's take a look at this official document.

http://pythonhosted.org/PyInstaller/

In fact, two sentences are commonly used.

Pyinstall ***.py

Pyinstall-f ***.py

One: Installation of the module

Originally wanted to put Pyinstall in a python base environment. But when you find this package, you need to read the packages in the Python environment, so it's still in the virtual environment of each project.

Http://www.cnblogs.com/jackadam/p/8067327.html

Refer to this article, directly loaded Pyinstaller Remember is the one with ER.

Two: Configure extension tools

As shown

$PyInterpreterDirectory $\pyinstaller.exe This refers to the Pytinstall in this virtual environment.

$FilePath $ This refers to the full path of the file

$ProjectFileDir $ This is the project folder.

All together is run under the project folder Pyinstall the full path of the file, generating the exe,windows executable file.

The following is a single file with the-f parameter.

Group is the Extension tool group, I also have two extensions of PYQT, so I want to use grouping.

Three: Using Pyinstall

Open your project, configure the virtual environment, install Pyinstaller in the virtual environment

After you have finished, you can right-click on the file, under Group, there will be pyinstall items.

Pyinstall Turn your program into an executable program for Windows. PY exe

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.