How can I use qiime 2 in python?

I followed the installation instructions here:

But qiime is not available in Python:

$ source activate qiime2-2017.7
(qiime2-2017.7) $ ipython
Python 3.5.3 |Continuum Analytics, Inc.| (default, Mar  6 2017, 11:58:13) 
Type 'copyright', 'credits' or 'license' for more information
IPython 6.1.0 -- An enhanced Interactive Python. Type '?' for help.

In [1]: import qiime
ImportError                               Traceback (most recent call last)
<ipython-input-1-54c42c5666d1> in <module>()
----> 1 import qiime

ImportError: No module named 'qiime'

Hi @08-04 — looks like you successfully installed QIIME 2, however you are not actually importing it in that ipython session: QIIME 2 is available under the package qiime2, not qiime! If you are interested in learning more about the python API, check out the Artifact API Tutorial! Have fun!

Great, thank you!

1 Like

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