从Nose中移除损坏的插件

3 投票
1 回答
647 浏览
提问于 2025-04-18 10:10

我尝试安装一个叫做html-output的nose插件。我在setup.py文件所在的目录下使用了这个命令:

pip install .

看起来是成功了,但现在在运行nosetests的时候,我收到了以下信息:

/Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/site-packages/nose/plugins/manager.py:395: RuntimeWarning: Unable to load plugin html-output = htmloutput.htmloutput:HtmlOutput: No module named 'version'
  RuntimeWarning)

我只想把它去掉。我试过这个:

pip uninstall .

但是没有用。我甚至尝试卸载nose再重新安装,但警告还是出现。我不知道该怎么办。

1 个回答

2

通过包的名称来删除它:

pip uninstall nosehtmloutput

(假设你正在使用 nose-html-output 这个包)

撰写回答