Check

Check python version

1
python --version

Check available packages version

1
2
3
4
5
6
7
apt-cache policy pakagename
# Let's say package numpy
# you should type:
apt-cache policy python-numpy

# for package cpython
# you should type: apt-cache policy cpython

Install packages

1
2
3
4
5
6
7
8
# Install pip & matplotlib

sudo apt-get install python-pip
sudo apt-get install matplotlib

# Install numpy

sudo apt-get install python-numpy

Install jupyter notebook

1
2
3
4
5
6
7
# Install pip

curl "https://bootstrap.pypa.io/get-pip.py" -o "get-pip.py"
sudo python get-pip.py

# Install jupyter notebook
pip install jupyter