Several common ways to install Python modules

Source: Internet
Author: User

Python Module Installation method

One, multi-file module, with setup.py

Download the installation package directly, unzip it, Enter directory via cmd command, direct python setup.py install

Note: Direct double click error is easy

Directly copied to the Python installation directory \python27\lib\site-packages\ or \python27\lib\ directory can be, but the general lip directory is the original module, \site-packages\ is placed outside the module

Second, the Easy_install way

Download ez_setup.py First, run Python ez_setup to install the Easy_install tool, and then you can install the package using Easy_install.

Need to add environment variable, no word cmd jump to C:\Python27\Scripts


Easy_install-u WxPython

Four, the PIP way

Install the pip tool First: Easy_install pip (pip can be installed by Easy_install and also loaded into the Scripts folder. )

Install: Pip Install PackageName

Update: Pip install-u packagename

Removal: Pip Uninstall PackageName

Search: Pip Search PackageName

Help: Pip helps

Several common ways to install Python modules

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.