因安装pytest最新版本导致,运行pytest命令出错:pluggy.manager.PluginValidationError: unknown hook 'pytest_namespace' in plugin <module 'allure.pytest_plugin' from 'd:\anaconda3\lib\site-packages\allure\pytest_plug

出错提示:

pluggy.manager.PluginValidationError: unknown hook 'pytest_namespace' in plugin <module 'allure.pytest_plugin' from 'd:\anaconda3\lib\site-packages\allure\pytest_plugin.py'>

解决办法:

卸载当前版本,下载4.0.2版本,重新运行就好了。

原文地址:https://www.cnblogs.com/zhaoquanmo/p/10763249.html