Python Learning (6) module-third-party module, python third-party module

Source: Internet
Author: User

Python Learning (6) module-third-party module, python third-party module
Python third-party module

 

Install third-party modules

In Python, third-party modules are installed through the setuptools tool. Python has two package management tools that encapsulate setuptools: easy_install and pip. Pip is currently officially recommended.

If you are using Mac or Linux, skip this step to install pip. If you are using Windows, make sure pip and Add python.exe to Path are checked during installation.

Run pip in the Command Prompt window. If the command is not found in Windows, run the installer again to add pip. view the cmd running result below.

 

Generally, third-party libraries are registered on the Python official pypi.python.org website. to install a third-party library, you must first know the name of the library and search on the official website or pypi; generally, third-party class libraries are provided with documents and examples on the official website.

Note: whether the Python version supported by the third-party class library is consistent with the current development environment. If you do not know the library name, you can Browse the corresponding library in the Browse packages. For example: the Printing library in Python 3.4

For example, you can click Package say to view the specific information of the corresponding library. to install this module, run pip install say under cmd. The Package will be automatically downloaded, decompressed, and installed, as follows:

...

 

Note: The Python3.X class library is still very hard, and most class libraries are still not migrated, and there are no similar alternatives. Therefore, use 2 in the production environment.

 

 

 

 

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.