目次
Anaconda インストーラのダウンロード
以下コマンドを実行し、インストーラをダウンロードします。URL はここの Anaconda Installers から調べます。
今回は「64-Bit (x86) Installer (659 MB)」をインストールします。

①ダウンロードします。
以下のコマンドを実行します。
wget https://repo.anaconda.com/archive/Anaconda3-2022.05-Linux-x86_64.sh
②インストールします。
以下のコマンドを実行します。
bash ./Anaconda3-2022.05-Linux-x86_64.sh
Welcome to Anaconda3 2022.05
In order to continue the installation process, please review the license
agreement.
Please, press ENTER to continue
>>> # <------------------------------------ エンターを入力
===================================
Anaconda End User License Agreement
...
Do you accept the license terms? [yes|no]
[no] >>> yes # <--------------------------- yes を入力
Anaconda3 will now be installed into this location:
/home/user1/anaconda3
- Press ENTER to confirm the location
- Press CTRL-C to abort the installation
- Or specify a different location below
[/home/user1/anaconda3] >>> # <------------ エンターを入力
PREFIX=/home/user1/anaconda3
...
Preparing transaction: done
Executing transaction: done
installation finished.
Do you wish the installer to initialize Anaconda3
by running conda init? [yes|no]
[no] >>> # <------------------------------- yesを入力
インストールを確認
一度、ターミナルからEXITを行います。
次に以下のコマンドを実行し、インストールされたことを確認します。
「/home/(ユーザー名)/anaconda3/bin/python」が表示されたらうまくインストールできています。
which python

tensorflowをインストール
tensorflowをインストールします。
pip install tensorflow
vimを導入する
(個人的にはこのエディターが入ってないと生産性が50%は低下します。)
sudo apt-get install vim
デフォルトのエディタをvimに変更します。
sudo update-alternatives --config editor
以下のようだったら、3を選択します。

必要なファイルのインストール
必要なファイルのインストールします。
sudo apt-get install git gcc make openssl libssl-dev libbz2-dev libreadline-dev libsqlite3-dev zlib1g-dev
Pythonライブラリのインストール
以下、用途に応じて必要なPythonライブラリ (+ 本体) をインストールしていきます。
conda経由が便利なものはcondaで、それ以外はpipで行います。
諸々インストールする前に自身を更新しておきます。
conda update -y conda
pip install --upgrade pip
Jupyter Notebookをインストール
Jupyter Notebookをインストールします。
pip install jupyter
今回は以上です。お疲れ様でした!
コメント