Hands-On Machine Learning on Google Cloud Platform
上QQ阅读APP看书,第一时间看更新

Setting up a data science stack on the VM

So, now we have a VM running and we're able to send files to it, connect to it, and modify it. Everything is ready for us to set it up for data science!

We will install the Python Miniconda stack from continuum, much smaller than the full Conda distribution. Do SSH into your instance.

  1. Install the mini sudo apt-get update sudo apt-get install bzip2 wget from https://repo.continuum.io/miniconda/Miniconda2-latest-Linux-x86_64.sh using the following command:
bash Miniconda2-latest-Linux-x86_64.sh
  1. And then install the Python stack with conda:
$ conda install scikit-learn pandas jupyter ipython

Don't forget to do this:

$ source .bashrc