1

可能重复:
ImportError: No module named bz2 for Python 2.7.2

我运行这个命令: /usr/bin/python -c "import bz2; print bz2.__doc__"

结果是:

Traceback (most recent call last):
  File "<string>", line 1, in <module>
ImportError: No module named bz2

也存在 apt-cache search bz2

libbz2-dev - high-quality block-sorting file compressor library - development

我该如何解决这个错误?

4

0 回答 0