LoginSignup
29
14

More than 3 years have passed since last update.

anacondaをインストールしたのにcondaコマンドがなかった

Posted at

とっくのとうにAnacondaはインストールされていたが...

いかんせん私のMacは大昔に環境構築をし、そこにさらに増築に増築を重ねて、とっ散らかった状態でした。

とりあえずターミナルでcondaとタイプだ

zsh: command not found: conda

おやおや、穏やかではありませんねぇ...

.zshrcを確認

...結論からいうと、condaに関する記述がありませんでした。素直にPATHを通しましょう。

具体的な記述

% echo "source ~/anaconda3/etc/profile.d/conda.sh" >> ~/.zshrc

この後

% source .zshrc

で.zshrcの内容を反映させましょう。

確認

% conda --version
conda 4.5.4

これでcondaコマンドがターミナルから使用できるようになりました。

29
14
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
29
14