【Pytest】ModuleNotFoundError: No
2021-11-17 本文已影响0人
Queenie的学习笔记
1. 原因:
Pycharm里用的解释器可能有多个,当前使用的可能没有按照pytest模块
2. 解决办法:
进入 File->Setting->项目名称->Python Interpreter,找到那个安装了pytest的解释器
image.png
Pycharm里用的解释器可能有多个,当前使用的可能没有按照pytest模块
进入 File->Setting->项目名称->Python Interpreter,找到那个安装了pytest的解释器
image.png