LoginSignup
7
6

More than 5 years have passed since last update.

condaコマンドnot found

Posted at

問題

probrem.shell

$conda --version
bash: conda: command not found

試したこと

まずはアナコンダの設定が記述されているかを確認

catbashprofile.shell

cat .bash_profile
# added by Anaconda3 2018.12 installer

added by Anaconda3 2018.12 installerのような記述があれば
こちらが反映されている必要があるので
私の場合以下のコマンドにて適用させた。
(再起動でもいけるかもですがこの辺りはMacのshellスクリプトの設定によります。)
(bashrcやその他シェルスクリプトの設定をされている方はそちらの確認も必要になります。)

source.shell
$source ~/.bash_profile

コマンド確認

表示されるようになりました。

version.shell

$conda --version
conda 4.5.12

メモ

私の環境ではGUIのインストーラー(Mac)で
インストールしたのですが、condaコマンドは
Anaconda3ディレクトリ、homeディレクトリで実行可能だったので
グローバルにインストールされているものと予想されます。

7
6
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
7
6