10

I have an M1 MacBook using conda through miniforge3.

I want to use a 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.

Cornelius Roemer
  • 3,772
  • 1
  • 24
  • 55
Tiberio
  • 101
  • 1
  • 4
  • 3
    @merv, you need to set `--env` to make that work only for that env. Otherwise it's a global setting. `conda config --env --set subdir osx-64` – isuruf Mar 21 '22 at 07:45
  • @isuruf oops good catch - was a little hasty there. I cover this setting here (though, for **win-32** / **win-64** switching): https://stackoverflow.com/a/58014896/570918 – merv Mar 23 '22 at 02:55

1 Answers1

19
  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
isuruf
  • 2,323
  • 12
  • 14