1、官网:https://pypi.org/project/pytest/,下载

2、命令窗口执行:pip install pytest-7.2.2-py3-none-any.whl(同理删除:pip uninstall pytest-7.2.2-py3-none-any.whl)

3、进入 PyCharm/File -> Preference/Settings -> Tools -> Python Integrated Tools, 点击 Default Test Runner 选择 Pytest。
