1. 原因:
Pycharm里用的解释器可能有多个,当前使用的可能没有按照pytest模块
2. 解决办法:
进入 File->Setting->项目名称->Python Interpreter,找到那个安装了pytest的解释器
![](https://img.haomeiwen.com/i9034168/f35ec9a90ce0097f.png)
Pycharm里用的解释器可能有多个,当前使用的可能没有按照pytest模块
进入 File->Setting->项目名称->Python Interpreter,找到那个安装了pytest的解释器
本文标题:【Pytest】ModuleNotFoundError: No
本文链接:https://www.haomeiwen.com/subject/jvlrtrtx.html
网友评论