Creative Commons License

Virtual Machines

Run the following commands on your virtual machines. You can use pip or conda

Using Pip

pip

$ sudo apt install python-pip

jupyter

$ python3 -m pip install jupyter

scikit-learn

$ python3 -m pip install scikit-learn

OR

$ sudo apt install python-sklearn

numpy

$ python3 -m pip install numpy

OR

$ sudo apt install python-numpy

pandas

$ python3 -m pip install pandas

OR

$ sudo apt install python-pandas

matplotlib

$ python3 -m pip install matplotlib

graphviz

$ python3 -m pip install graphviz

pydotplus

$ python3 -m pip install pydotplus

OR

$ sudo apt install python-matplotlib

tensorflow

$ python3 -m pip install tensorflow

Conda/Microconda

Download Miniconda (relevant to your architecture) on your virtual machine. Run the executable. If successful, it must create miniconda2 dirctory in your home folder on your machine.

jupyter

$ conda install jupyter

scikit-learn

$ conda install scikit-learn

numpy

$ conda install numpy

pandas

$ conda install pandas

matplotlib

$ conda install matplotlib

tensorflow

$ conda install tensorflow

Google-Colaboratory

You can also test the exercises on Google Colaboratory: https://colab.research.google.com/. If you have a Google account, you can create a Python notebook. You can access your Google drive files, after mounting them.

Mounting Google drive

from google.colab import drive
drive.mount('/content/gdrive')

You can see the files in your Drive folder.

from os import listdir

for f in listdir("/content/gdrive/My Drive"):
  print(f)