新环境运行Python时报错 ModuleNotFoundError: No module named '_pytest.resultlog'
上网查,看到解决方法 https://www.cnblogs.com/QiKa/p/14457269.html
解决办法:
①升级pytest-rerunfailures版本到9.1.1
②卸载pytest-rerunfailures使用pytest-reportlog代替
③降低pytest版本到6.1.0以下
pip list看了一下我的版本:
pytest版本:
pytest-rerunfailures版本:
遂对pytest-rerunfailures进行了升级:pip install --upgrade pytest-rerunfailures,升级后版本:
升级后恢复正常!
- ModuleNotFoundError resultlog module pytest namedmodulenotfounderror resultlog module pytest modulenotfounderror module named 39 modulenotfounderror watchdog module named modulenotfounderror module kornia named modulenotfounderror packaging module named modulenotfounderror module pandas named modulenotfounderror module infer named modulenotfounderror module named torch modulenotfounderror module lanms named modulenotfounderror module qrcode named