1, first, install python2.7.13, the official website Download MSI version (Windows Direct installation);
HTTPS://www. Python. Org/downloads/
2, then, to the Python package website under the next download , the future,pefile,pywin32,pyinstaller these four bags
(When installing Pyinstaller, if you are prompted for missing other components, you will need to install those components before installing Pyinstaller, you may also want to
Dis3,macholib,altgraph
)
;
Https://pypi.python.org/pypi
Download The package name, search, file, and download directly in the upper right corner.
3, according to the installation of these four packages , for example:
Future:
Down is the compression bag , put it in a directory ,
(1) First make sure that the computer already has the Python environment variable;
CMD under input python has information out, python2.7.13 .... (If you do not manually add environment variables, the Python directory path, and
The path to the Scrites directory under the Python directory);
(2) under the Cmd,dos into the future directory, run
Python setup. PY Install
(3) A case is installed successfully, if the display is missing what package, please go to the Python package website to continue to download and then install the required package;
(4) According to the installation of Future,pefile,pywin32, ...
Pip Install PYWIN32-223-CP27-CP27M-WIN32.WHL
Pip Install MACHOLIB-1.9-PY2.PY3-NONE-ANY.WHL
, and finally in the installation of Pyinstaller;
(5) Create a new Hello. Py, file write to print "Hello word! ";
CMD in to Hello. PY file directory, enter:
Pyinstaller Hello. PY -F
The meaning of this life order is to put the Hello. The py file is packaged as an EXE file into the current directory under Dist\hello. Exe
- F parameter is to generate a single EXE file
Then go to the Dist directory and execute
Hello. Exe
Show Hello word!
Manual installation of Pyinstaller (python2.7) under Windows