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
- PyPI to download suffix called
.whl
Python installation package file - Pack into the installation directory:
cd <path>
- The installation command:
pip install <file_name.whl>
- PyPI to download suffix called
Source Installation
Apply to obtain a specific release
- step
- 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)
- git download format:
- Into the source file directory:
cd <path>
- The installation command:
python setup.py install
- Download Source
Verifying the Installation
- step
- Python interactive mode to enter the command line:
python
- References need to verify Python libraries:
import <package_name>
- If there is no error, then it proves that the installation was successful, otherwise fail
- Python interactive mode to enter the command line: