Differences between revisions 3 and 4
Revision 3 as of 2023-11-21 16:00:01
Size: 2344
Comment:
Revision 4 as of 2023-11-21 16:00:27
Size: 2383
Comment:
Deletions are marked like this. Additions are marked like this.
Line 3: Line 3:
https://computing.docs.ligo.org/conda/  * Follow the instruction : https://computing.docs.ligo.org/conda/
Line 6: Line 6:

 * memo

IGWN Conda Distribution

System-B@Kashiwa

  • memo

curl -L -O https://github.com/conda-forge/miniforge/releases/latest/download/Mambaforge-$(uname)-$(uname -m).sh
bash Mambaforge-$(uname)-$(uname -m).sh
cp /home/hirotaka.yuzurihara/igwn-py39.yaml ./
mamba env create --file igwn-py39.yaml
mamba install jupyterlab
mamba activate igwn-py39

M1 Mac

2022/06時点ではarm64用の設定ファイルが無いため、M1 MacにIGWNをインストールするにはRosetta2を使う必要がある。 特に指定しないでHomebrewでAnacondaをインストールするとarm64版がインストールされている。 そのため、x86)64用としてMambaforgeをインストールする。

arch -x86_64 zsh
curl -L -O https://github.com/conda-forge/miniforge/releases/latest/download/Mambaforge-$(uname)-$(uname -m).sh
bash Mambaforge-$(uname)-$(uname -m).sh

HomebrewとMambaforgeを切り替えるにはzshrcに以下の設定を記入する

# conda
if [[ "$(uname -m)" == 'arm64' ]]; then
  # >>> conda initialize >>>
  # !! Contents within this block are managed by 'conda init' !!
  __conda_setup="$('/opt/homebrew/Caskroom/miniconda/base/bin/conda' 'shell.zsh' 'hook' 2> /dev/null)"
  if [ $? -eq 0 ]; then
      eval "$__conda_setup"
  else
      if [ -f "/opt/homebrew/Caskroom/miniconda/base/etc/profile.d/conda.sh" ]; then
          . "/opt/homebrew/Caskroom/miniconda/base/etc/profile.d/conda.sh"
      else
          export PATH="/opt/homebrew/Caskroom/miniconda/base/bin:$PATH"
      fi
  fi
  unset __conda_setup
  # <<< conda initialize <<<

else

  # >>> conda initialize >>>
  # !! Contents within this block are managed by 'conda init' !!
  __conda_setup="$('/Users/NAME/mambaforge/bin/conda' 'shell.zsh' 'hook' 2> /dev/null)"
  if [ $? -eq 0 ]; then
      eval "$__conda_setup"
  else
      if [ -f "/Users/NAME/mambaforge/etc/profile.d/conda.sh" ]; then
          . "/Users/NAME/mambaforge/etc/profile.d/conda.sh"
      else
          export PATH="/Users/NAME/mambaforge/bin:$PATH"
      fi
  fi
  unset __conda_setup

  if [ -f "/Users/NAME/mambaforge/etc/profile.d/mamba.sh" ]; then
      . "/Users/NAME/mambaforge/etc/profile.d/mamba.sh"
  fi
  # <<< conda initialize <<<

fi

KAGRA/Subgroups/DET/IGWN (last edited 2023-11-21 17:19:08 by shoichi.oshino)