安装picrust2保存报错怎么解决

发布时间:2022-03-21 10:30:16 作者:iii
来源:亿速云 阅读:503

这篇文章主要讲解了“安装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.git
cd

Next, install the required dependencies listed here.

Install PICRUSt2 into it's own environment using conda:

conda env create -f picrust2-env.yaml
source activate picrust2
pip 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 <module>

    __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 <module>

    @_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保存报错怎么解决这一问题有了更深刻的体会,具体使用情况还需要大家实践验证。这里是亿速云,小编将为大家推送更多相关知识点的文章,欢迎关注!

推荐阅读:
  1. Kubernets安装dashboard报错怎么解决
  2. node-sass安装报错如何解决

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

picrust2

上一篇:怎么用R语言分析Hellinger转化问题

下一篇:R包安装报错configure: error怎么解决

相关阅读

您好,登录后才能下订单哦!

密码登录
登录注册
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》