pytest: error: unrecognized arguments: --html=report.html 使用pip list来检查,如果你已经pytest-html安装了。如果不是,请安装 pip install pytest-html。 pytest-html 是pytest的插件,不属于pytest库。