python版本xpclr报错

报错内容: ImportError: cannot import name 'romberg' from 'scipy.integrate' 可以看一下,基本上是这个脚本的第六行存在调用: ~/biosoft/conda/miniconda3/lib/python3.12/site-package...

报错内容:

ImportError: cannot import name 'romberg' from 'scipy.integrate'

可以看一下,基本上是这个脚本的第六行存在调用:

~/biosoft/conda/miniconda3/lib/python3.12/site-packages/xpclr/methods.py

报错原因:scipy高于1.14版本的话romberg函数被删除

https://docs.scipy.org.cn/doc/scipy-1.14.0/reference/generated/scipy.integrate.romberg.html

可以看一下自己的版本

pip show scipy

解决办法:

降低scipy版本:

conda install bioconda::xpclr scipy=1.14

我的出现了这个:

attachments-2026-01-cDu56LJs6970895ecaa2d.png

然后就可以运行 xpclr -h看看是否报错

  • 发表于 2026-01-21 15:57
  • 阅读 ( 399 )
  • 分类:软件工具

你可能感兴趣的文章

相关问题

0 条评论

请先 登录 后评论
Ti Amo
Ti Amo

78 篇文章

作家榜 »

  1. omicsgene 775 文章
  2. 安生水 371 文章
  3. Daitoue 167 文章
  4. 生物女学霸 120 文章
  5. xun 97 文章
  6. rzx 88 文章
  7. 红橙子 81 文章
  8. Ti Amo 78 文章