In case of Biopython. ImportError: No module named seq
In case of Biopython. ImportError: No module named seq
我是 python 首发。我安装了 Biopython 并进行了测试。
但是..效果不佳。
enter image description here
我的模块在这里,我通过以下工作检查了它。
Python 2.7.10(默认值,2015 年 10 月 17 日,23:05:16)
[GCC 4.2.1 兼容 Apple LLVM 7.0.0 (clang-700.0.72)] on darwin
键入 "help"、"copyright"、"credits" 或 "license" 以获取更多信息。
import Bio
from Bio.seq import seq
Traceback (most recent call last):
File "", line 1, in
ImportError: No module named seq
我不是..确定...搜索互联网请帮助我...
找出它的安装位置并将路径添加到您的 pythonpath
export PYTHONPATH=<path>
#my path was /Library/Python/2.7/site-packages
在您的 ~/.bashrc (linux) 或 ~/.profile 文件 (osx) 中。
Python 是 case-sensitive。 Biopython 没有“seq
”模块;您需要改为导入“Seq
”:
from Bio.Seq import Seq
我是 python 首发。我安装了 Biopython 并进行了测试。
但是..效果不佳。 enter image description here
我的模块在这里,我通过以下工作检查了它。
Python 2.7.10(默认值,2015 年 10 月 17 日,23:05:16) [GCC 4.2.1 兼容 Apple LLVM 7.0.0 (clang-700.0.72)] on darwin 键入 "help"、"copyright"、"credits" 或 "license" 以获取更多信息。
import Bio from Bio.seq import seq Traceback (most recent call last): File "", line 1, in ImportError: No module named seq
我不是..确定...搜索互联网请帮助我...
找出它的安装位置并将路径添加到您的 pythonpath
export PYTHONPATH=<path>
#my path was /Library/Python/2.7/site-packages
在您的 ~/.bashrc (linux) 或 ~/.profile 文件 (osx) 中。
Python 是 case-sensitive。 Biopython 没有“seq
”模块;您需要改为导入“Seq
”:
from Bio.Seq import Seq