千家信息网

安装picrust2保存报错怎么解决

发表于:2025-01-20 作者:千家信息网编辑
千家信息网最后更新 2025年01月20日,这篇文章主要讲解了"安装picrust2保存报错怎么解决",文中的讲解内容简单清晰,易于学习与理解,下面请大家跟着小编的思路慢慢深入,一起来研究和学习"安装picrust2保存报错怎么解决"吧!安装p
千家信息网最后更新 2025年01月20日安装picrust2保存报错怎么解决

这篇文章主要讲解了"安装picrust2保存报错怎么解决",文中的讲解内容简单清晰,易于学习与理解,下面请大家跟着小编的思路慢慢深入,一起来研究和学习"安装picrust2保存报错怎么解决"吧!

安装picrust2 保存:pkg_resources.DistributionNotFound: The 'cython' distribution was not found and is required by biom-format

安装方法:

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

测试报错:

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

解决办法:

重新安装:pip install biom-format

感谢各位的阅读,以上就是"安装picrust2保存报错怎么解决"的内容了,经过本文的学习后,相信大家对安装picrust2保存报错怎么解决这一问题有了更深刻的体会,具体使用情况还需要大家实践验证。这里是,小编将为大家推送更多相关知识点的文章,欢迎关注!

0