在miniconda环境中找不到模块错误Bio

我将bio python安装为

pip install biopythonconda install -c conda-forge biopython。我在站点包中看到了。由于某些原因,存在Bio依赖性。如何解决这种依赖性?

 Type "help","copyright","credits" or "license" for more information.
>>> import bio
>>> bio.__version__
'1.75'
>>> from bio import pairwise2
Traceback (most recent call last):
  File "<stdin>",line 1,in <module>
  File ".../miniconda/lib/python3.7/site-packages/bio/pairwise2.py",line 246,in <module>
    from Bio import BiopythonWarning
ModuleNotFoundError: No module named 'Bio'
>>> 
je8600 回答:在miniconda环境中找不到模块错误Bio

很明显,在bio中将Bio重命名为sitepackages才有效

Python 3.7.4 (default,Aug 13 2019,15:17:50) 
[Clang 4.0.1 (tags/RELEASE_401/final)] :: Anaconda,Inc. on darwin
Type "help","copyright","credits" or "license" for more information.
>>> import Bio
>>> from Bio import pairwise2
>>> 
,

我在Google上搜索了如何在此link中使用pip安装biopython。

  1. 您需要输入Capabilities: Channel: &ChannelCapabilities V1_4_3: true V1_1: true pip install biopython

  2. 然后导入Bio(B不是b)

pip install biopython --user

我相信文档总是一个不错的开始,您可以找到here

本文链接:https://www.f2er.com/3017469.html

大家都在问