Manual installation of Pyinstaller (python2.7) under Windows

Source: Internet
Author: User

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

Related Article

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.