Skip to content

Instantly share code, notes, and snippets.

@rvibek
Created February 6, 2023 16:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rvibek/63585a23fbf14aa8d13a9cfa39558806 to your computer and use it in GitHub Desktop.
Save rvibek/63585a23fbf14aa8d13a9cfa39558806 to your computer and use it in GitHub Desktop.
# Create x86 conda environment
create_x86_conda_environment () {
# example usage: create_x86_conda_environment myenv_x86 python=3.9
CONDA_SUBDIR=osx-64 conda create -n $@
conda activate $1
}
# Create ARM conda environment
create_ARM_conda_environment () {
# example usage: create_ARM_conda_environment myenv_x86 python=3.9
CONDA_SUBDIR=osx-arm64 conda create -n $@
conda activate $1
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment