在Mac終端eclipse中的錯誤導入coverage時?
$ coverage help
Coverage.py, version 3.5
測量,收集,並在Python程序代碼覆蓋率報告。
而在Eclipse中,我遇到錯誤,如下所示:請舉個手
Error: coverage module could not be imported
Please make sure that the coverage module (http://nedbatchelder.com/code/coverage/)
is properly installed in your interpreter: /usr/bin/python
Traceback (most recent call last):
File "/Users/***/eclipse/plugins/org.python.pydev.debug_2.2.0.2011062419/pysrc/pydev_coverage.py", line 34, in execute
import coverage #@UnresolvedImport
ImportError: No module named coverage