Pyinstaller Package Python program (python3.5)

Source: Internet
Author: User

After the procedure was finished yesterday, think about the actual activity can not open the IDE to run the scene, and then wondering how to find how to package on the Internet

There are probably two ways to search the Internet.

Py2exe

Pyinstaller

The first is that most of the evaluations look low and seem like a lot of trouble.

So I chose the second kind.

Installation process: Two ways have been introduced before

Http://www.cnblogs.com/ronyjay/p/6483522.html

Pip

Third-party installation

First I chose to try a third-party installation:

Download Pyinstaller's Package online, address https://github.com/pyinstaller/pyinstaller/

After unpacking, enter Python setup.py install in directory

But the error.

Error message Missing parentheses in call to ' print '

Search the internet for half a day have not found a solution, here if someone knows, ask for advice

Then try PIP installation

PIP installation is still relatively smooth, not too much trouble

Pip Install Pyinstaller

After the installation is successful, you can enter the PIP list in the Python directory to view the installed libraries

Packaging program

Come to the program directory that needs to be packaged, enter the instructions

Pyinstaller-f my program. py

And then it's an error.

The problem of encoding format, the need to package the PY program into English name, successful packaging success

Run

In this machine, and another machine running EXE program, can run successfully, but there will be a command line window, check the following is the problem of packaging parameters

Pyinstaller-f-W-i manage.ico app.py-F: Packaged as a single file -w:windows program, does not display the command line window -I: Is the program icon, app.py is the py file you want to pack.

After repackaging, it will run normally

Pyinstaller Package Python program (python3.5)

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.