DevOps – Python PIP with Examples for beginners
This short guide and the video will give you the basic information about Python PIP, This is good to understand one of the DevOps topics for beginners. Here we are going to see all the basic commands which are helpful to understand the PIP concepts.
What is PIP
PIP stands for “Pip Installs Python” or “PIP Installs Package”. Like RPM, pip is a package management system used to install and manage software/packages written in Python programming language.
Most of the pip packages can be found in the Python Package Index PyPI.
Python versions above 2.7.9 in Python 2.X series, Python 3.4 and later include pip by default. Check your python version by running “python -V”, if your python version is low and PIP not installed by default, can install as mentioned below
Suggestable Read: Epel Repository Configuration
Install Epel repository for resolving the Python PIP packages and it’s dependicies on Linux.
|[[email protected] ~]# yum install epel-release|
Root or equivalent privileges required to install PIP.
# yum install python-pip
# apt-get install python-pip
Upgrade PIP Itself
# pip install –upgrade pip
PIP Usage Examples
# pip install [options] <package_name>
Installs/Upgrade PIP package
pip install <package_name> # installs latest version
pip install –upgrade <package_name> # Upgrade a package
# pip list [options]
List installed packages, including editable.
–outdated # List outdated packages
# pip show [options] <package_name>
Show information about installed package.
–files # Displays list of installed files for each package.
# pip search [options] <query>
Search for PyPI packages whose name or summary contains <query>.
–index <url> # Base URL of Python Package Index (default https://pypi.python.org/pypi)
# pip uninstall <package_name>
Uninstalls a PIP package
pip uninstall <package_name> # Uninstall PIP package
Information Source: Click Here
For More information Please watch this video:
Conclusion: This whole concept is to give you a brief detail about Python PIP and it’s usage. stay in touch with us for more articles and videos about DevOps topics.