# command not found: CONDA\_SUBDIR

**URL:** https://forum.qiime2.org/t/command-not-found-conda-subdir/23541
**Category:** Technical Support
**Created:** [July 3, 2022, 4:54pm UTC](https://forum.qiime2.org/t/command-not-found-conda-subdir/23541 "2022-07-03T16:54:38Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![kurh-08](https://forum.qiime2.org/user_avatar/forum.qiime2.org/kurh-08/32/10605_2.png) [@kurh-08](https://forum.qiime2.org/u/kurh-08)
#### Post date: [July 3, 2022, 4:54pm UTC](https://forum.qiime2.org/t/command-not-found-conda-subdir/23541/1 "2022-07-03T16:54:38Z")

</div>

Hello.  
I have a problem about qiime2 install.  
My environment is Macbook Air (M1).

I have checked past questions in this forum and found that it is probably an issue with Apple M1 chip. ([Install QIIME2 on Macbook Pro 2021 with apple M1 Chip](https://forum.qiime2.org/t/install-qiime2-on-macbook-pro-2021-with-apple-m1-chip/21492))  
I installed miniforge3(Miniforge3-MacOSX-x86\_64.sh).  
I set the terminal app to run under rosetta mode.  
But, I have failed to install qiime2 as follows.

% CONDA\_SUBDIR = osx-64 conda env create -n qiime2-2022.2 --file qiime2-2022.2-py38-osx-conda.yml  
zsh: command not found: CONDA\_SUBDIR

What is wrong?  
Looking forward to your reply!

---

<div class="post-metadata">

### Author: ![colinbrislawn](https://forum.qiime2.org/user_avatar/forum.qiime2.org/colinbrislawn/32/6221_2.png) [@colinbrislawn](https://forum.qiime2.org/u/colinbrislawn)
#### Post date: [July 3, 2022, 6:34pm UTC](https://forum.qiime2.org/t/command-not-found-conda-subdir/23541/2 "2022-07-03T18:34:39Z")

</div>

Hello @kurh-08,

Welcome to the forums! :qiime2:

Double check that you are running _exactly_ what is shown in the examples

> [@Install QIIME2 on Macbook Pro 2021 with apple M1 Chip](https://forum.qiime2.org/t/install-qiime2-on-macbook-pro-2021-with-apple-m1-chip/21492/1):
>
> CONDA\_SUBDIR=osx-64 conda env create -n qiime2-2021.11 --file qiime2-2021.11-py38-osx-conda.yml

In your version, I notice spaces around the `=` equals sign `=` and I wonder if that's causing problems.

> [@kurh-08](#):
>
> % CONDA\_SUBDIR = osx-64 conda env create -n qiime2-2022.2 --file qiime2-2022.2-py38-osx-conda.yml

---

<div class="post-metadata">

### Author: ![kurh-08](https://forum.qiime2.org/user_avatar/forum.qiime2.org/kurh-08/32/10605_2.png) [@kurh-08](https://forum.qiime2.org/u/kurh-08)
#### Post date: [July 4, 2022, 1:13pm UTC](https://forum.qiime2.org/t/command-not-found-conda-subdir/23541/3 "2022-07-04T13:13:44Z")

</div>

Hello!  
Thank you for your help.  
I tried  
% CONDA\_SUBDIR=osx-64 conda env create -n qiime2-2022.2 --file qiime2-2022.2-py38-osx-conda.yml  
But, I got different error as follows.  
SpecNotFound: Invalid name, try the format: user/package

What should I try next?  
Sorry for bother you.

---

<div class="post-metadata">

### Author: ![colinbrislawn](https://forum.qiime2.org/user_avatar/forum.qiime2.org/colinbrislawn/32/6221_2.png) [@colinbrislawn](https://forum.qiime2.org/u/colinbrislawn)
#### Post date: [July 4, 2022, 3:52pm UTC](https://forum.qiime2.org/t/command-not-found-conda-subdir/23541/4 "2022-07-04T15:52:59Z")

</div>

We are on the right track!

Looks like conda has been updated sense that tutorial was written.

Based on [this post](https://stackoverflow.com/questions/69482678/specnotfound-invalid-name-try-the-format-user-package-in-creating-new-conda), it now  
`conda create`  
instead of  
`conda env create`  
as shown in that tutorial.

---

<div class="post-metadata">

### Author: ![kurh-08](https://forum.qiime2.org/user_avatar/forum.qiime2.org/kurh-08/32/10605_2.png) [@kurh-08](https://forum.qiime2.org/u/kurh-08)
#### Post date: [July 5, 2022, 12:06pm UTC](https://forum.qiime2.org/t/command-not-found-conda-subdir/23541/5 "2022-07-05T12:06:51Z")

</div>

Thank you for your reply! @colinbrislawn

Finally, I can create environment! Thanks to you 😄

When I try  
CONDA\_SUBDIR=osx-64 conda create -n qiime2-2022.2 --file qiime2-2022.2-py38-osx-conda.yml  
I get error as follows.  
CondaValueError: could not parse '- qiime2/label/r2022.2' in: qiime2-2022.2-py38-osx-conda.yml

But,  
conda env create -n qiime2-2022.2 --file qiime2-2022.2-py38-osx-conda.yml  
this script worked well.  
Finally, in my environment, the problem seems to have been solved by installing miniforge3 and changing to Rosetta mode.

Thanks a lot!

---

<div class="post-metadata">

### Author: ![system](https://forum-qiime2-org.s3.dualstack.us-west-2.amazonaws.com/original/3X/2/1/21af5fe23cb6f4579467c66a9ed94e55274ca7bd.svg) [@system](https://forum.qiime2.org/u/system)
#### Post date: [August 5, 2022, 6:07pm UTC](https://forum.qiime2.org/t/command-not-found-conda-subdir/23541/6 "2022-08-05T18:07:12Z")

</div>

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.
