我刚刚使用 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。更奇怪的是,如果我重复导入语句,DNASequence 会正确加载。知道是什么导致了这种行为吗?
我正在运行 Mac OS X 10.9.5 (Mavericks)、Python 3.4.1(通过自制软件安装)。