需要安装pytest和pytest-html pip3 install -U pytest pip3 install -U pytest-html 转载于:https://www.cnblogs.com/dieyaxianju/p/6878890.html