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.