1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

pyenvとcondaで環境構築

Posted at

pyenv: conda: command not found

となる場合

conda --versions
pyenv: conda: command not found

bashの設定ファイルに書き込む

echo 'export PATH="~/.pyenv/versions/anaconda3-5.2.0/bin/:$PATH"' >> ~/.bash_profile
source .bash_profile

fishはbash,zshとpathの書き方が違うようなので注意.今回はおとなしくbashを使い,sourceで読み込んだ.

conda activateできない

fishの設定ファイルに使うanacondaのバージョン(今回はpyenvで管理している)のpathを書き込む

echo "source (conda info --root)/etc/fish/conf.d/conda.fish" >> config.fish
conda --version                                                                                                           
conda 4.5.11

環境構築の流れ

pyenv versions
pyenv local anaconda3-5.3.0
conda create -n job_opencv python=3.7.0
conda version
conda list
conda activate job_opencv
conda deactivate

参考サイト

https://org-technology.com/posts/fish-conda.html
https://qiita.com/Ryuichirou/items/bf3cf227a20e6300fa7a
https://qiita.com/taaaaak/items/2294d909bea910b1d818
https://qiita.com/najayama/items/5ae5fbe2c87568d98987
https://blog.mktia.com/how-to-install-anaconda-in-macos/
https://qiita.com/nsas454/items/c5bd3a535205d434234e
https://qiita.com/masatomix/items/b1a0ec216ea943c86a2a
https://qiita.com/ysdyt/items/5008e607343b940b3480

1
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
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?