我将bio python安装为
pip install biopython
和conda 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'
>>>
答案 0 :(得分:1)
很明显,在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
>>>
答案 1 :(得分:0)