Created
February 6, 2023 16:01
-
-
Save rvibek/63585a23fbf14aa8d13a9cfa39558806 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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