Python Installation Setuptools method

Source: Internet
Author: User

Regular contacts with Python may notice that the Easy_install command may be used when a third-party Python package needs to be installed. Easy_install is a command from the Setuptools package developed by the Peak (Python Enterprise application kit), so use Easy_ The install is actually calling Setuptools to complete the installation of the module. So we need to install the setuptools, but in the actual operation of the process, I still encountered a problem, After the online review has been installed through the. exe format file, but I downloaded after the discovery seems to be version does not match, engaged me half a day, originally figure easy not to go to the Python official website to see English, or hide but ah. Don't say much nonsense, look at the specific method.

This is setuptools proud of a way of installation, only need a 8K as a script ez_setup.py, you can automatically install for the user including Setuptools itself, many Python packages.

In this way, the user can download and install the appropriate Setuptools egg file for the current Python version of the user by simply downloading and running ez_setup.py (of course, the user needs Python 2.3.5 or more, 64-bit OS users need Python version 2.4 or higher). In addition, the script installs the executable Easy_install script to a location where the user's operating system Python executable scripts should be installed (for example, Windows users are installed in the Scripts directory in the Python installation directory). For more detailed instructions and precautions on this installation method, please refer to their official instructions.

Go to the Python website https://pypi.python.org/pypi/setuptools/. See the following interface:

Click ez_setup.py, pop up a new tab in the browser, inside the code section

Directly open the address: https://bootstrap.pypa.io/ez_setup.py

Select all and copy to a new file named ez_setup.py (save to Desktop for convenience)

Double-click Run, the script will automatically recognize the Python version, and download the appropriate files for you to install, in fact, quite a fool.

Run process

Then open the script folder of the Python directory to view

At this point, the Python setuptools is installed!

Python Installation Setuptools method

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.