Skip to content

Commit ff05d7e

Browse files
authored
Merge pull request #1576 from BastianZim/patch-1
2 parents c0e4d5e + 2324922 commit ff05d7e

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

src/user/tipsandtricks.rst

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,3 +105,28 @@ package that depends on MPI should find the local copy of ``mpich`` and link to
105105
``mpich`` has a high degree of ABI compatibility, making this procedure possible.
106106
We have not currently implemented this procedure with ``openmpi``, but can do so at a later date
107107
as ABI compatibility allows.
108+
109+
110+
.. _apple_silicon_rosetta:
111+
112+
Installing Apple Intel packages on Apple Silicon
113+
================================================
114+
115+
Using `Rosetta 2 <https://support.apple.com/en-us/HT211861>`_, you can install packages originally compiled for Mac computers with Intel processors on Mac computers with Apple silicon processors.
116+
117+
This can be enabled per environment using the following commands:
118+
119+
.. code-block:: shell
120+
121+
CONDA_SUBDIR=osx-64 conda create -n your_environment_name python # Create a new environment called your_environment_name with intel packages.
122+
conda activate your_environment_name
123+
conda env config vars set CONDA_SUBDIR=osx-64 # Make sure that conda commands in this environment use intel packages.
124+
conda deactivate
125+
conda activate your_environment_name
126+
127+
To verify that the correct platform is being used, run the following commands after the environment has been activated:
128+
129+
.. code-block:: shell
130+
131+
python -c "import platform;print(platform.machine())" # Should print "x86_64"
132+
echo "CONDA_SUBDIR: $CONDA_SUBDIR" # Should print "CONDA_SUBDIR: osx-64"

0 commit comments

Comments
 (0)