Bus errorとSegmentation faultに困ったら見るブログ

物理の研究者による日々の研究生活のメモ書きです ( python/emacs/html/Japascript/シェルスクリプト/TeX/Mac/C言語/Linux/git/tmux/R/ポケモンGO)

mambaを使うためにminiforgeをインストールした【Debian12・python3】


参考

zenn.dev

  • anaconda
  • miniconda
  • miniforge

は別物らしい
その区別は上記のリンクを参照

今回は mambaが使いたいので、 miniforgeをインストールする
mambaはc++で書かれてるので? 通常のcondaよりも早い

インストールマニュアル

github.com

# スクリプトを落としてくる
wget "https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-$(uname)-$(uname -m).sh"

# スクリプトを走らせる
bash Miniforge3-$(uname)-$(uname -m).sh

この後、いくつか質問が出たり、yesと打つ

最後に、初期設定をやるか聞かれるのでやっておく

Proceed with initialization? [yes|no]
[no] >>> yes

これで .zshrcの最後にインストールされたminiforgeの設定が追記された

以前から使ってるDebianの.zshrcがあるけど、そのときはanacondaだった気がするので微妙にリンクが違う・・・
なので、これはありがたい

インストールはかなりすぐに終わった。

アンインストールの方法

github.com

ここにコマンドラインが載ってる
設定を解除して、rmしていくのでOK

# Use this first command to see what rc files will be updated
conda init --reverse --dry-run
# Use this next command to take action on the rc files listed above
conda init --reverse
# Temporarily IGNORE the shell message
#       'For changes to take effect, close and re-open your current shell.',
# and CLOSE THE SHELL ONLY AFTER the 3rd step below is completed.
CONDA_BASE_ENVIRONMENT=$(conda info --base)
echo The next command will delete all files in ${CONDA_BASE_ENVIRONMENT}
# Warning, the rm command below is irreversible!
# check the output of the echo command above
# To make sure you are deleting the correct directory
rm -rf ${CONDA_BASE_ENVIRONMENT}
rm -f "${HOME}/.condarc"
rm -fr ${HOME}/.conda

ランキング参加中です

↓クリックしていただけると嬉しいです〜