python - How to fix Attribute Error in just importing pytest ...
stackoverflow.com › questions › 58948889Nov 20, 2019 · The error is: AttributeError: 'WindowsPath' object has no attribute 'read_text' >>> import pytest Traceback (most recent call last): File "<stdin>", line 1, in <module> File "--\AppData\Local\Programs\Python\Python36\Lib\site-packages\pytest.py", line 6, in <module> from _pytest.assertion import register_assert_rewrite File "--\AppData\Local\Programs\Python\Python36\Lib\site-packages\_pytest\assertion\__init__.py", line 7, in <module> from _pytest.assertion import rewrite File "--\AppData ...