Help us understand the problem. What is going on with this article?

pyenvとcondaで環境構築

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

padawan_e15
情報系大学院生です。自然言語処理。
http://forhighlow0.hatenablog.com
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
No comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
ユーザーは見つかりませんでした