Ubuntu17.10にAnacondaをインストール

Anaconda(アナコンダ)とは

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

ダウンロード

Anaconda のダウンロードページに行ってダウンロードします。

下の画面が表示される時がありますが、[No Thanks]を押せば大丈夫です。


ターミナル(端末)を開く

ダウンロードしたインストーラを実行するターミナル(端末)を起動します。


インストーラの実行

ターミナル上でインストーラーを実行します。
5行目の'sudo'に注意してください。インストールの中にVSCodeをインストールしますが、この時にroot権限が必要になります。sudoがないとVSCodeのインストールが失敗します。

$ sudo bash 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$ sudo 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]
>>> yes <------ VSCodeをインストールするかどうか選択します
...(略)...
to PATH in your /home/test/.bashrc ? [yes|no]
[no] >>> yes <------ yes[Enter]でパス設定を.bashrcに保存
...(略)...
test:~$
view raw consolelog.sh hosted with ❤ by GitHub
以上で、インストールは終了です。