本文介绍了在miniconda环境中找不到模块错误Bio的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我将bio python安装为
I installed bio python as
pip install biopython
以及 conda install -c conda-forge biopython
.我在站点包中看到了.由于某些原因,存在 Bio
依赖性.如何解决这种依赖性?
pip install biopython
as well as conda install -c conda-forge biopython
. I see in site-packages. for some reason there is Bio
dependency. How do I resolve this dependency?
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'
>>>
推荐答案
显然,在 sitepackages
中将 bio
重命名为 Bio
,然后它有效
Apparently, renaming bio
as Bio
in sitepackages
then it works
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
>>>
这篇关于在miniconda环境中找不到模块错误Bio的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!