Tiberio
Tiberio

Reputation: 161

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.

Upvotes: 16

Views: 16316

Answers (3)

Anton
Anton

Reputation: 69

micromamba allows to specify platform directly, so it could be installed under the "base" environment:

micromamba install <package_name> --platform osx-64

Upvotes: -1

Cornelius Roemer
Cornelius Roemer

Reputation: 7989

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.

Upvotes: 5

isuruf
isuruf

Reputation: 2733

  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

Upvotes: 32

Related Questions