Build conda env in cross platform manner

Is there any way to build an ARM conda env on x86 system?

conda (23.10 and above) and micromamba have a --platform flag, so you can do this:

$ conda create -n python-arm64 --platform osx-arm64 python

In previous conda versions with no --platform flag, you’d need to run three commands for the same effect:

$ CONDA_SUBDIR=osx-arm64 conda create -n python-arm64 python
$ conda activate python-arm64
$ conda config --env --set subdir osx-arm64
1 Like

Thanks for the information. Will try!