我正在学习《笨办法学Python》,卡在了第46个练习(http://learnpythonthehardway.org/book/ex46.html)。
我已经安装了pip和nose包,但是每当我像示例中那样运行nosetest时,它都无法正常工作。这是我得到的错误:
Traceback (most recent call last):
File "/usr/local/bin/nosetests", line 5, in <module>
from pkg_resources import load_entry_point
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2807, in <module>
parse_requirements(__requires__), Environment()
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 594, in resolve
raise DistributionNotFound(req)
pkg_resources.DistributionNotFound: nose==1.3.0
我在谷歌上搜索了相关信息,但并没有找到答案。我使用的是Lubuntu 13.04桌面系统。
Requirement already satisfied (use --upgrade to upgrade): nose==1.3.0 in /usr/local/lib/python2.7/dist-packages
。 - mathiflippip install --upgrade nose==1.3.0
。 - danodonovan要求已经更新:nose==1.3.0在/usr/local/lib/python2.7/dist-packages中
。 - mathiflip