Python Dependency Manager

In this tutorial you will learn:

  • Dependency Manager
  • PIP Dependency Manager in Python
  • Other Dependency Managers in Python

Dependency Manager

A dependency manager as the name suggests is a software module that helps the program manage different libraries and packages. Since many libraries and packages are being developed everyday by developers and we need to use them in our code as we don’t want to waste our time redeveloping something that’s already developed and want to speedup our development. So a dependency manager is required to manage those libraries and packages in our code.

PIP Dependency Manager in Python

The Dependency Manager in Python is called PIP. It’s a package manager that’s included in Python version 3.4 and greater and also available here https://pypi.org/project/pip/. To check the version of PIP in your code

pip —version

Downloading a package using PIP is very simple we need to open the command line and write PIP install followed by the package name.

pip install pandas

Pressing enter will download and install this package. Now you will be able to use the import command with that package name and start using the functionality provided by it.

In order to uninstall a package we need to write a similar command instead install will be replaced with the word uninstall.

pip uninstall pandas

Other Dependency Managers in Python

PIP is not the only package manager in Python. Another good open source package manager is called Conda. It can also manages dependencies like PIP. Conda is mostly used in Anaconda which is a popular scientific computing and Data Science tool but even with its own package manager Anaconda still provides support for PIP.

Add new comment