module 'allure' has no attribute 'severity_level'
![](https://img.laitimes.com/img/9ZDMuAjOiMmIsIjOiQnIsIyZuBnLxQTMyMDN0EjM1EDOwEjMwIzLc52YucWbp5GZzNmLn9Gbi1yZtl2Lc9CX6MHc0RHaiojIsJye.png)
出現上述問題執行:
pip show pytest --version
若版本大于5.0,則需執行
pip uninstall pytest-allure-adaptor
pip install allure-pytest
原有:pytest-allure-adaptor相容pytest版本<5.0;而allure-pytest相容pytest版本>5.0
module 'allure' has no attribute 'severity_level'
出現上述問題執行:
pip show pytest --version
若版本大于5.0,則需執行
pip uninstall pytest-allure-adaptor
pip install allure-pytest
原有:pytest-allure-adaptor相容pytest版本<5.0;而allure-pytest相容pytest版本>5.0