Python pip packages

  • PyPI is a repository of software for the python programming language.
  • PyPI helps you find and install software developed and shared by the Python community.

pip

  • pip is a tool to install the python community packages
  • pip is the recommended installer.

install pip

install a package using pip

  • let install most used python package pandas using pip
  • run the command pip install pandas to install the package
  • package pandas is ready to use
import pandas as pd

data = [['Anji', 'B', 'India'], ['Eva', 'D', 'Russia']]

df = pd.DataFrame(data, columns=['first_name', 'last_name', 'country'])
print(df)
# output:
#   first_name last_name country
# 0       Anji         B   India
# 1        Eva         D  Russia

pip - install packages from git

  • use the command pip install git+<repo url>
  • let's install the django package using pip and git
pip install git+https://github.com/django/django.git

References