Packages‎ > ‎

Install packages

Install python packages (pip install)

# install pip on Ubuntu/Linux
sudo apt-get install python-pip

# get latest version of the pip package installer
python -m pip install --upgrade pip



# installing package NumPy
python -m pip install numpy



# local installation (doesn’t require root admin permissions)
pip install --user  numpy

# add to your .bashrc file (path to local installation)
export PATH="$PATH:/home/myUserName/.local/bin"


# check installed package version
import numpy
print(numpy.__version__)
  1.16.4

import matplotlib
print(matplotlib.__version__)
  2.2.4

# get package location
from distutils.sysconfig import get_python_lib
print(get_python_lib())
 /usr/lib/python2.7/dist-packages