Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to solve the problem of saving error when installing picrust2

2025-04-07 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/01 Report--

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!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report