Python: Install Python Package using PIP
Install python package is very easy if you use PIP, a package installer.
The list of package that can be installed by using PIP can be found at PyPI index.
Install Package Globally
pip install PACKAGE_NAME
Specify version of Python
python3 -m pip install PACKAGE_NAME
*Very useful when you want to downgrade the version of package.
Specify version of package
pip install PACKAGE_NAME=VERSION
Upgrade package
pip install -U PACKAGE_NAME
Install Package Locally
pip install -U --user PACKAGE_NAME
where PACKAGE_NAME and VERSION is the name of package and version of package, such as numpy.
numpy
1.5
Example
pip install -U numpy
Moreover, PIP can also installer wheel file. For example,
pip install PACKAGE_NAME_VERSION_BLA_BLA.whl
Rangsiman ketkaew