LoginSignup
0
0

More than 3 years have passed since last update.

【備忘録】Anaconda3インストール手順

Posted at

はじめに

前記事で綺麗にアンインストールしたので、改めて入れます。

手順

ここでAnacondaのインストーラをダウンロードします

したらインストーラ起動してそのまま従ってるとインストール完了します

ターミナルで以下のコマンドを打ってみます

conda --version

zsh: command not found: conda
こうなってるならなにかが狂っているので

vi ~/.bash_profile

して見ましょう

# added by Anaconda3 2019.10 installer
# >>> conda init >>>
# !! Contents within this block are managed by 'conda init' !!
__conda_setup="$(CONDA_REPORT_ERRORS=false '/Users/!$!"#/opt/anaconda3/bin/conda' shell.bash hook 2> /dev/null)"
if [ $? -eq 0 ]; then
    \eval "$__conda_setup"
else
    if [ -f "/Users/(%#$/opt/anaconda3/etc/profile.d/conda.sh" ]; then
        . "/Users/t$#%#/opt/anaconda3/etc/profile.d/conda.sh"
        CONDA_CHANGEPS1=false conda activate base
    else
        \export PATH="/Users/!$%#/opt/anaconda3/bin:$PATH"
    fi
fi
unset __conda_setup
# <<< conda init <<<

こんな感じのが複数あったら最新のもの以外を消します。
(一番上の行の日付を見ると良いです)

また、zshを使っている人は

vi ~/.zprofile

をしてここにペーストします

おわり

はい。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0