安装了pytest 但是不能用:
1、ModuleNotFoundError: No module named 'pytest'
原因:没有在pycharm里面安装pytest.


2、在 Project Interpreter里安装pytest失败


解决方法:在终端运行 pip install --user pytest

安装了pytest 但是不能用:
原因:没有在pycharm里面安装pytest.
解决方法:在终端运行 pip install --user pytest
本文标题:mac安装pytest遇到的坑
本文链接:https://www.haomeiwen.com/subject/auuzfrtx.html
网友评论