我刚刚使用pip3安装了numpy和scikit-bio。如果我在交互式会话中导入DNASequence,我会收到一条错误消息:
>>> from skbio.sequence import DNASequence
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python3.4/site-packages/skbio/__init__.py", line 64, in <module>
from skbio.stats.distance import DistanceMatrix
File "/usr/local/lib/python3.4/site-packages/skbio/stats/distance/__init__.py", line 293, in <module>
from ._base import (DissimilarityMatrixError, DistanceMatrixError,
File "/usr/local/lib/python3.4/site-packages/skbio/stats/distance/_base.py", line 11, in <module>
from future.utils.six import StringIO, string_types
ImportError: No module named 'future.utils.six'
运行'pip3 list'向我显示安装了六个1.8.0。更奇怪的是,如果我重复import语句,DNASequence会正确加载。知道是什么导致了这种行为吗?
我正在运行Mac OS X 10.9.5(Mavericks),Python 3.4.1(通过自制软件安装)。