About
Pip is a package manager.
Use pip to manage Python packages from PyPI.
- Command line options have precedence over
- the environment variables, which have precedence over
- the config file.
Articles Related
Install
apt-get install -y python-pip
Package Management
Help
python -m pip --help
Install
Pip is included with Python >=3.4 and >=2.7.9.
Install Pip
python -m pip install --upgrade pip setuptools wheel
- from Linux package manager after having added EPEL for CentOS/RHEL. More, see Installing pip/setuptools/wheel with Linux Package Managers
sudo yum install python-pip
Show
pip show SomePackage #Detail about a package
pip show --files SomePackage
pip show numpy
---
Name: numpy
Version: 1.9.2
Location: c:\python27\lib\site-packages
Requires:
List
pip list # to list installed package
pip list --outdated #outdated package
numpy (1.9.2)
pip (1.5.6)
setuptools (7.0)
Upgrade
pip install --upgrade SomePackage
uninstall
pip uninstall SomePackage
Search
pip search "query"