In this tutorial we will learn about PIP a package management system for Python.
PIP is a package management system for Python. It helps us to find packages and install them in our Python projects with ease.
PIP is a recursive acronym and it stands for PIP Installs Packages.
You can find PIP on PyPI (Python Package Index). Project Link.
If you are using Python v3.4 or above then you already have PIP installed.
If you want to install the latest version then head over to pypi.org and get the latest version of PIP.
Type the following command in the terminal to check the version of PIP installed on your computer.
$ pip --version
To upgrade PIP we use the --upgrade option.
In the following example we are upgrading PIP to the latest version.
$ pip install --upgrade pip
To install any package we run the pip install command.
In the following example we are installing MySQL Connector for Python package using PIP.
$ pip install mysql-connector-python
To uninstall package using PIP we have to run the following command pip uninstall.
In the following example we are uninstalling mysql-connector-python package using PIP.
$ pip uninstall mysql-connector-python
To list the packages we use the pip list command.
In the following example we are listing all the packages installed in a project.
$ pip list
Have fun learning :-)
Copyright © 2014 - 2019 DYclassroom. All rights reserved.
rendered in 0.0223 sec