1.在pycharm新建一个项目,调出控制台输入 pip install httprunner 安装成功 2.如果出现这种情况的时候,需要去安装allure 可以pip安装或者点击file–》settings 选择你的project,点击右方加号 输入allure,安装allure-pytest