GCPにAnacondaをインストールする

Anaconda(アナコンダ)とは

AnacondaはPython本体とよく利用されるPythonパッケージを一括でインストールできるようにしたPythonパッケージです。

環境

ここでは、GCE(Google Computer Engine)の無料枠で使用するため以下の構成のGCEで行っています。
  •  CPU プラットフォーム : f1-micro(vCPU x 1、メモリ 0.6 GB) 
  •  ゾーン : us-east1-b

インストールの準備

Anaconda のダウンロードページに行ってURLを確認します。
2018/04/08現在は、https://repo.continuum.io/archive/Anaconda3-5.1.0-Linux-x86_64.sh です。
 

インストール

test:~$ mkdir download
test:~$ cd download
test:~/download$ curl -O https://repo.continuum.io/archive/Anaconda3-5.1.0-Linux-x86_64.sh
...(略)...
test:~/download$ bash Anaconda3-5.1.0-Linux-x86_64.sh
...(略)...
In order to continue the installation process, please review the license
agreement.
Please, press ENTER to continue
>>> <------ [SPC]または[Enter]を押すと表示が進みます
...(略)...
Do you accept the license terms? [yes|no]
[no] >>> yes <------ yes[Enter]でライセンスに同意します
Anaconda3 will now be installed into this location:
/home/test/anaconda3
- Press ENTER to confirm the location
- Press CTRL-C to abort the installation
- Or specify a different location below
[/home/test/anaconda3] >>> <------ インストールするディレクトリです
...(略)...
Do you wish the installer to prepend the Anaconda3 install location
to PATH in your /home/test/.bashrc ? [yes|no]
[no] >>> yes <------ yes[Enter]でパス設定を.bashrcに保存
...(略)...
Do you wish to proceed with the installation of Microsoft VSCode? [yes|no]
>>> no <------ VSCodeをインストールするかどうか選択します
view raw anaconda.sh hosted with ❤ by GitHub