Get the App
SLTechnology News&Howtos  ›  Development  › 

How to solve the problem of saving error when installing picrust2

Shulou Source: shulou.com Published: 2022-06-01 04:39:20 09月22日 Update

This article mainly explains the "installation of picrust2 save report how to solve", the article explains the content is simple and clear, easy to learn and understand, the following please follow the editor's ideas slowly in-depth, together to study and learn "install picrust2 save report how to solve" it!

Install picrust2 to save: pkg_resources.DistributionNotFound: The 'cython' distribution was not found and is required by biom-format

Installation method:

All installation instructions are in more detail here.

First, clone the repository and enter the directory:

Git clone https://github.com/picrust/picrust2.gitcd

Next, install the required dependencies listed here.

Install PICRUSt2 into it's own environment using conda:

Conda env create-f picrust2-env.yamlsource activate picrust2pip install-- no-deps-- editable.

Finally, run the tests to verify the install was successful:

Pytest

Test error:

Standard error of the above failed command:

Traceback (most recent call last):

File "/ share/work/biosoft/conda/Miniconda3.8/envs/picrust2/bin/picrust2_pipeline.py", line 4, in

_ _ import__ ('pkg_resources'). Require (' PICRUSt2==2.3.0b0')

File "/ share/work/biosoft/conda/Miniconda3.8/envs/picrust2/lib/python3.6/site-packages/pkg_resources/__init__.py", line 3267, in

@ _ call_aside

File "/ share/work/biosoft/conda/Miniconda3.8/envs/picrust2/lib/python3.6/site-packages/pkg_resources/__init__.py", line 3251, in _ call_aside

F (* args, * * kwargs)

File "/ share/work/biosoft/conda/Miniconda3.8/envs/picrust2/lib/python3.6/site-packages/pkg_resources/__init__.py", line 3280, in _ initialize_master_working_set

Working_set = WorkingSet._build_master ()

File "/ share/work/biosoft/conda/Miniconda3.8/envs/picrust2/lib/python3.6/site-packages/pkg_resources/__init__.py", line 582, in _ build_master

Ws.require (_ _ requires__)

File "/ share/work/biosoft/conda/Miniconda3.8/envs/picrust2/lib/python3.6/site-packages/pkg_resources/__init__.py", line 899, in require

Needed = self.resolve (parse_requirements (requirements))

File "/ share/work/biosoft/conda/Miniconda3.8/envs/picrust2/lib/python3.6/site-packages/pkg_resources/__init__.py", line 785, in resolve

Raise DistributionNotFound (req, requirers)

Pkg_resources.DistributionNotFound: The 'cython' distribution was not found and is required by biom-format

Solution:

Reinstall: pip install biom-format

Thank you for your reading, the above is the "installation of picrust2 save error report how to solve" the content, after the study of this article, I believe you on the installation of picrust2 save error report how to solve this problem has a deeper understanding, the specific use of the situation also needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!

Tags: Learning content method that is ideas situations articles methods more knowledge knowledge points articles follow questions practice push test research verification Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Docker Redmi Apple macOS OPPO Reno