pytest版本更新后使用报错: pluggy.manager.PluginValidationError: unknown hook 'pytest_namespace' in plugin <module 'allure.pytest_plugin' from 'd:\\python\\lib\\site-packages\\allure\\pytest_plugin.py'>
安装其它插件时自动更新了pytest,更新完使用运行脚本报错:
pluggy.manager.PluginValidationError: unknown hook 'pytest_namespace' in plugin <module 'allure.pytest_plugin' from 'd:\\python\\lib\\site-packages\\allure\\pytest_plugin.py'>
解決办法:
卸载pytest pip uninstall pytest
重新安装指定版本eg: pip install pytest==5.3.0
重装后恢复正常