5.5 years ago by
One possible problem is that you installed Biopython without having NumPy. This would result in not installing the cluster module which uses C code with NumPy. If so, you may need to reinstall Biopython. If this is the problem this won't work either:
from Bio import KDTree
Alternatively, it might be you didn't install Biopython properly and have somehow managed to get access to only the pure-Python parts? That is possible if you're in the Biopython source code directory when you run Python, or if you have set the $PYTHONPATH to include the Biopython source code. In this case the following will probably also fail:
from Bio import trie
In addition to trying these two imports, could you add more details about how you installed Biopython? e.g. Which version of OS X, XCode, Python, NumPy, Biopython.