0
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 1 year has passed since last update.

【Git Bash, conda】Git Bashでcondaを使えるようにする

Last updated at Posted at 2021-12-09

環境

  • Microsoft Windows 10.0.22000.318(21H2)
  • conda 4.11.0
  • Git Bash 2.34.1.windows.1

手順

  1. スタートで「conda.sh」と入力して「パスのコピー」をクリック。
  2. コピーしたパスの \/ に置き換える。(そのままだと上手くいかなかった)
  3. Git Bashで echo ". PATH" >> ~/.profile を実行。( PATH の部分に2のパスを入れる)--> これで、Git Bash起動後すぐにcondaコマンドが使えるようになる。
  4. conda activate ENVNAME で環境を指定。(デフォルトのconda環境なら conda activate base

確認

conda list を実行すると、以下のように表示される。

$ conda list
# packages in environment at C:\Users\USERNAME\.pyenv\pyenv-win\versions\Anaconda3:
#
# Name                    Version                   Build  Channel
_anaconda_depends         2021.11                  py38_0
_ipyw_jlab_nb_ext_conf    0.1.0                    py38_0
_tflow_select             2.3.0                     eigen
absl-py                   0.13.0           py38haa95532_0
...

参考

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?