Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to set up a conda osx-64 environment on ARM mac?

I have an M1 MacBook using conda through miniforge3.

I want to use some packages not built for ARM (ifcopenshell, pythonocc-core). Mixing channels (conda-forge/osx-64 and conda-forge/osx-arm) often does not work reliably.

How do I tell conda/mamba to have an environment only using x64? I don't want to install osx-64 conda in parallel.

like image 647
Tiberio Avatar asked Dec 21 '25 15:12

Tiberio


2 Answers

  conda create -n intel_env
  conda activate intel_env
  conda config --env --set subdir osx-64
  conda install python

Or

  CONDA_SUBDIR=osx-64 conda create -n intel_env python
  conda activate intel_env
  conda config --env --set subdir osx-64
like image 97
isuruf Avatar answered Dec 24 '25 09:12

isuruf


Using micromamba it's as simple as adding --platform osx-64 to every invocation of micromamba:

micromamba create -n intel_env --platform osx-64 python

Micromamba is an alternative conda-env manager, supporting most conda commands with some slight differences. It's what's powering mamba v1 under the hood.

like image 27
Cornelius Roemer Avatar answered Dec 24 '25 09:12

Cornelius Roemer



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!