自己明明安装了pytest,怎么就是报错说找不到呢。解决方法如下: 运行成功! 给予我灵感的参考链接:https://blog.csdn.net/pfm685757/article/details/46122225