Python libraries installed (Windows / Linux Universal)

pip install

The easiest way to install automatically download and install

  • pip: package management tools
  • The installation command:pip install <package_name>

wheel installation

In the case of poorly applicable speed

  • wheel: Python installation package
  • step
    1. PyPI to download suffix called .whlPython installation package file
    2. Pack into the installation directory:cd <path>
    3. The installation command:pip install <file_name.whl>

Source Installation

Apply to obtain a specific release

  • step
    1. Download Source
      • git download format:git clone <git://github/xxx.git>
      • curl Download format:curl -OL <https://github.com/xxx>
        • Parameters O: The server response to save the file, and the last part of the URL as file name
        • Parameters L: Let HTTP request to follow the redirect server (curl default does not follow redirects)
    2. Into the source file directory:cd <path>
    3. The installation command:python setup.py install

Verifying the Installation

  • step
    1. Python interactive mode to enter the command line:python
    2. References need to verify Python libraries:import <package_name>
    3. If there is no error, then it proves that the installation was successful, otherwise fail

Guess you like

Origin www.cnblogs.com/madmanlyy/p/12066095.html