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