Take installing the extension package SymPy as an example:
method one:
Format: pip install xxx //xxx: package name
Example: pip install SymPy
Method two:
If you have Git installed, you can also use pip+git to install: pip install git+xxx.git //xxx: the location of the github repository where the package is located
Example: pip install git+https://github.com/sympy/sympy.git
Method three:
Download the corresponding compressed package on github. After decompression, there will be a setup.py file in the folder. Enter the folder from the command line window.
Then enter the command: python setup . py install
Method four:
Install using .whl file, steps:
1. Open the command line window and enter the directory where the downloaded whl package is located
2. Enter the following command, xxx is the name of the package to follow
Python -m pip install -U xxx
Note: The Python extension library can be downloaded from the following website: http://www.lfd.uci.edu/~gohlke/pythonlibs/
Example:
1. The directory where the SymPy library is located:
2. Install SymPy