我正在尝试安装一个名为 qiime http://qiime.org/install/install.html的程序,并且我已经按照说明完成了先决条件的安装以及构建和安装,但我被卡住了,因为 python 找不到 defaultdict 计数器。我用谷歌搜索安装 defaultdict 但我什么也没找到。你如何安装defaultdict和counter?这是我得到的错误。谢谢
casey@casey-laptop:~/Downloads/Qiime-1.5.0/tests$ cd
casey@casey-laptop:~$ align_seqs.py -h
Traceback (most recent call last):
File "/usr/local/bin/align_seqs.py", line 15, in <module>
from qiime.util import parse_command_line_parameters, get_options_lookup
File "/usr/local/lib/python2.6/dist-packages/qiime/util.py", line 25, in <module>
from collections import defaultdict, Counter
ImportError: cannot import name Counter
casey@casey-laptop:~/Downloads/Qiime-1.5.0/tests$ python all_tests.py
Traceback (most recent call last):
File "all_tests.py", line 10, in <module>
from qiime.util import (parse_command_line_parameters, get_options_lookup,
File "/usr/local/lib/python2.6/dist-packages/qiime/util.py", line 25, in <module>
from collections import defaultdict, Counter
ImportError: cannot import name Counter