# RESCRIPT says it installed, but I cannot use it

**URL:** https://forum.qiime2.org/t/rescript-says-it-installed-but-i-cannot-use-it/27955
**Category:** Library Support
**Created:** [October 13, 2023, 2:41pm UTC](https://forum.qiime2.org/t/rescript-says-it-installed-but-i-cannot-use-it/27955 "2023-10-13T14:41:07Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![laur34](https://forum.qiime2.org/user_avatar/forum.qiime2.org/laur34/32/16697_2.png) [@laur34](https://forum.qiime2.org/u/laur34)
#### Post date: [October 13, 2023, 2:41pm UTC](https://forum.qiime2.org/t/rescript-says-it-installed-but-i-cannot-use-it/27955/1 "2023-10-13T14:41:07Z")

</div>

Hello. I am using Ubuntu version 22.04.3 LTS, with Miniconda 23.7.4. I tried installing QIIME2 and RESCRIPT with the command

```auto
conda create -y -n rescript
conda activate rescript
conda install \
  -c conda-forge -c bioconda -c qiime2 -c https://packages.qiime2.org/qiime2/2023.5/tested/ -c defaults \
  qiime2 q2cli q2templates q2-types q2-longitudinal q2-feature-classifier 'q2-types-genomics>2023.2' \
  "pandas>=0.25.3" xmltodict ncbi-datasets-pylib

```

but when I try to use RESCRIPT, it says

**Error: QIIME 2 has no plugin/command named 'rescript'.**

Could someone help me troubleshoot it?  
I've previously tried it two other systems running Ubuntu, but those wouldn't even get that far.

---

<div class="post-metadata">

### Author: ![SoilRotifer](https://forum.qiime2.org/user_avatar/forum.qiime2.org/soilrotifer/32/21071_2.png) [@SoilRotifer](https://forum.qiime2.org/u/SoilRotifer)
#### Post date: [October 13, 2023, 4:56pm UTC](https://forum.qiime2.org/t/rescript-says-it-installed-but-i-cannot-use-it/27955/2 "2023-10-13T16:56:15Z")

</div>

Hi @laur34,

If you intend to run the RESCRIPt plugin via your QIIME 2 environment, you need to follow the instructions outlined under [Option 2](https://github.com/bokulich-lab/RESCRIPt#option-2-install-within-qiime-2-environment). Assuming you've already installed QIIME 2 as per [these instructions](https://docs.qiime2.org/2023.9/install/native/#install-qiime-2-within-a-conda-environment).

For example you'd run the following to install RESCRIPt into an existing QIIME 2 environment. Preferably, into a recent version of :qiime2: :

```auto
conda activate qiime2-2023.7 
conda install -c conda-forge -c bioconda -c qiime2 -c https://packages.qiime2.org/qiime2/2023.7/tested/ -c defaults \
  xmltodict 'q2-types-genomics>2023.2' ncbi-datasets-pylib

```

Then run:

```auto
pip install git+https://github.com/bokulich-lab/RESCRIPt.git

```

Let us know if that works.

-Mike

---

<div class="post-metadata">

### Author: ![laur34](https://forum.qiime2.org/user_avatar/forum.qiime2.org/laur34/32/16697_2.png) [@laur34](https://forum.qiime2.org/u/laur34)
#### Post date: [October 24, 2023, 10:36am UTC](https://forum.qiime2.org/t/rescript-says-it-installed-but-i-cannot-use-it/27955/3 "2023-10-24T10:36:07Z")

</div>

Hi Mike,

thanks for the reply. I tried what you said. This is how far I got:

```auto
conda remove --name rescript --all
conda update conda
wget https://data.qiime2.org/distro/amplicon/qiime2-amplicon-2023.9-py38-linux-conda.yml
conda env create -n qiime2-amplicon-2023.9 --file qiime2-amplicon-2023.9-py38-linux-conda.yml
rm qiime2-amplicon-2023.9-py38-linux-conda.yml
conda activate qiime2-amplicon-2023.9
qiime --help
conda install -c conda-forge -c bioconda -c qiime2 -c https://packages.qiime2.org/qiime2/2023.7/tested/ -c defaults xmltodict 'q2-types-genomics>2023.2' ncbi-datasets-pylib

```

but it ended up with a very long list of dependency problems. Longer than the history in my terminal, so I didn't catch all of it.  
If you have any more suggestions, please feel free to leave them here.  
cheers,  
laur

---

<div class="post-metadata">

### Author: ![SoilRotifer](https://forum.qiime2.org/user_avatar/forum.qiime2.org/soilrotifer/32/21071_2.png) [@SoilRotifer](https://forum.qiime2.org/u/SoilRotifer)
#### Post date: [October 24, 2023, 5:33pm UTC](https://forum.qiime2.org/t/rescript-says-it-installed-but-i-cannot-use-it/27955/8 "2023-10-24T17:33:44Z")

</div>

Hi @laur34,

We're still refining some details now that we have multiple distributions for [2023.9](https://docs.qiime2.org/2023.9/install/native/#install-qiime-2-within-a-conda-environment).

After corresponding with a few other :qiime2: devs, there are two approaches for making use of RESCRIPt:

1. You can install into your current version of QIIME 2, using these updated commands:

```auto
conda install -c conda-forge -c bioconda -c qiime2 \
-c https://packages.qiime2.org/qiime2/2023.9/shotgun/released/ \
-c defaults xmltodict 'q2-types-genomics>2023.5' ncbi-datasets-pylib

pip install git+https://github.com/bokulich-lab/RESCRIPt.git

qiime dev refresh-cache

qiime rescript --help

```

I just tried this myself and it seems to work fine on my end.

1. If the above does not work for you, you can install the [shotgun distribution](https://docs.qiime2.org/2023.9/install/native/#qiime-2-shotgun-distribution), which already has RESCRIPt installed, and simply switch to that environment and run RESCRIPt from there. Then switch back to the amplicon distribution to carry out the rest of your work.

Let us know if this works.

-Cheers!

---

<div class="post-metadata">

### Author: ![laur34](https://forum.qiime2.org/user_avatar/forum.qiime2.org/laur34/32/16697_2.png) [@laur34](https://forum.qiime2.org/u/laur34)
#### Post date: [November 3, 2023, 11:17am UTC](https://forum.qiime2.org/t/rescript-says-it-installed-but-i-cannot-use-it/27955/9 "2023-11-03T11:17:27Z")

</div>

Dear Mike,  
it worked. 🤩  
Thank you very much for helping me install RESCRIPT.  
Cheers!  
laur

---

<div class="post-metadata">

### Author: ![SoilRotifer](https://forum.qiime2.org/user_avatar/forum.qiime2.org/soilrotifer/32/21071_2.png) [@SoilRotifer](https://forum.qiime2.org/u/SoilRotifer)
#### Post date: [November 3, 2023, 1:38pm UTC](https://forum.qiime2.org/t/rescript-says-it-installed-but-i-cannot-use-it/27955/10 "2023-11-03T13:38:38Z")

</div>

> [@laur34](#):
>
> Thank you very much for helping me install RESCRIPT.

No worries! Happy :qiime2: -ing!
