How to install a third-party python package in windows

Source: Internet
Author: User

Python and easy_install

17:43:53 | classification: Python | label: python | font size subscription

Install third-party libraries in python

 

General Mode

 

Download the compressed package, decompress it, and find the setup. py file.

Use

X: \ decompress path> python setup. py install

View

F: \ Python25 \ Lib \ site-packages \

Below, there will be one more directory

The import directory name can be used in the interpreter.

 

Some are not directly directory names

For example, the directory ending with. egg will find another directory name except EGG-INFO. You can import this directory name.

 

 

Easy_install Method

For installing the egg extension package, egg can be considered as zip, but the extension is different.

 

 

Download with document http://peak.telecommunity.com/DevCenter/EasyInstall
Http://pypi.python.org/pypi/setuptoolsfind the latest version of 0.6c9 and download the package. decompress the package until you find the "setup. py" command line and find the directory to install python setup. py install.

Will be installed

F: \ Python25 \ Scripts \

Append the PATH to the PATH of the system environment variable.

 

You can also find ez_setup.py

 

X: \ decompress path> ez_setup.py to download the latest easy_install

 

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.