我在 OS X 中运行 python virtualenv。
我已经在 virtualenv 中使用 pip 安装了 pdb。
但是当我运行 pdb 时,出现以下错误。
Traceback (most recent call last):
File "/Users/myname/.virtualenvs/myenv/bin/pdb", line 9, in <module>
load_entry_point('pdb==0.1', 'console_scripts', 'pdb')()
File "/Users/myname/.virtualenvs/myenv/lib/python2.7/site-packages/pkg_resources.py", line 356, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "/Users/myname/.virtualenvs/myenv/lib/python2.7/site-packages/pkg_resources.py", line 2431, in load_entry_point
return ep.load()
File "/Users/myname/.virtualenvs/myenv/lib/python2.7/site-packages/pkg_resources.py", line 2147, in load
['__name__'])
ImportError: No module named pdb
我是一名优秀的程序员,十分优秀!