Python 无法加载插件前端计时器

Python 无法加载插件前端计时器,python,nosetests,Python,Nosetests,我设置了一台新的机器来运行带有nose定时器插件的nose测试,我的环境中还有其他机器可以毫无问题地运行它们。我不记得要做什么特别的事。这和我的道路有关吗?我已经确定了我的人生道路 C:\Python27\;C:\Python27\Lib\site包;C:\Python27\脚本 但是在工作的机器上,路径中只有Python27和\脚本 我的nosetest版本都是1.3.1,但在工作机器上,nose timer版本是0.3.0,nose timer版本是0.4.3 Traceback (most

我设置了一台新的机器来运行带有nose定时器插件的nose测试,我的环境中还有其他机器可以毫无问题地运行它们。我不记得要做什么特别的事。这和我的道路有关吗?我已经确定了我的人生道路

C:\Python27\;C:\Python27\Lib\site包;C:\Python27\脚本

但是在工作的机器上,路径中只有Python27和\脚本

我的nosetest版本都是1.3.1,但在工作机器上,nose timer版本是0.3.0,nose timer版本是0.4.3

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "C:\Python27\lib\multiprocessing\forking.py", line 380, in main
    prepare(preparation_data)
  File "C:\Python27\lib\multiprocessing\forking.py", line 488, in prepare
    assert main_name not in sys.modules, main_name
AssertionError: __main__
C:\Python27\lib\site-packages\nose\plugins\manager.py:395: RuntimeWarning: Unable to load plugin nosetimer = nosetimer.plugin:TimerPlugin:
  RuntimeWarning)
Usage: nosetests [options]

nosetests: error: no such option: --with-timer
回溯(最近一次呼叫最后一次):
文件“”,第1行,在
文件“C:\Python27\lib\multiprocessing\forking.py”,第380行,在main中
准备(准备数据)
文件“C:\Python27\lib\multiprocessing\forking.py”,第488行,在prepare中
断言主\u名称不在sys.modules中,主\u名称
断言错误:_umain__
C:\Python27\lib\site packages\nose\plugins\manager.py:395:RuntimeWarning:无法加载插件nosetimer=nosetimer.plugin:TimerPlugin:
运行时警告)
用法:鼻测试[选项]
nosetests:错误:没有这样的选项:--带计时器
提前感谢,,
Boris

我最终降级到nose timer 0.3.0,我的测试运行良好

pip uninstall nose-timer
pip install nose-timer==0.3.0

这可能是由于车轮的上游pip问题:

安装不带车轮的
机头计时器
应能解决此问题:

pip install --no-use-wheel nose-timer