---
# System prepended metadata

title: Install taxpasta on Apple Silicon
tags: [' apple silicon', mac, ' conda', ' mamba', ' rosetta']

---

---
tags: mac, apple silicon, rosetta, conda, mamba
---

# Install taxpasta on Apple Silicon

Issue: `biom-format` is not available as an `arm64` package

while running `mamba create -n taxpasta taxpasta=0.3`:

```
Encountered problems while solving:
  - nothing provides biom-format needed by taxpasta-0.3.0-pyhdfd78af_0
```

## Install Rosetta 2 if needed

If you haven't yet installed rosetta, you can install like so:
```
/usr/sbin/softwareupdate --install-rosetta
```
> you can add `--agree-to-license` to automatically agree to the license

## Create osx-64 taxpasta environment with conda/mamba
This creates a single environment using rosetta to run osx-64 packages. It stores those packages in a conda subdirectory called `osx-64`

```
CONDA_SUBDIR=osx-64 mamba create -n taxpasta python
mamba activate taxpasta
conda config --env --set subdir osx-64
python -c "import platform;print(platform.machine())" # should print: x86_64
mamba install taxpasta=0.3
```

You can alternatively see all settings for this environment using `conda info`


**The downside I can see for this method is that I don't (yet) know how to do this via an `environment.yml` file.**A

This might work, but I haven't actually tried it yet:

```
CONDA_SUBDIR=osx-64 mamba env create -f environment.yml 
```


# References

### per-environment setup
https://conda-forge.org/docs/user/tipsandtricks.html

Make sure that conda commands in this environment use intel packages.

```
conda config --env --set subdir osx-64
```

To verify that the correct platform is being used, run the following commands after the environment has been activated:
```
python -c "import platform;print(platform.machine())"  # Should print "x86_64"
echo "CONDA_SUBDIR: $CONDA_SUBDIR"  # Should print "CONDA_SUBDIR: osx-64"
```

ref photo:
![](https://hackmd.io/_uploads/H1KfhgXf2.png)

 
 