No module named 'py.io' Nishantc1527 Created June 26, 2020 02:53 For some reason, pytest is giving an error 'ModuleNotFoundError: No module named 'py.io''. Here are my installed packages: And my default test runner is pytest.
Are you able to run this pytest from the terminal? E.g. `pytest <path_to_test>`
Yes, command line works fine.
Ok then, could you please...
1. Show the full console output from running the test in PyCharm (including the run command)
2. Show the command from running the same test in system terminal, using the absolute path to the interpreter
3. Run the snippet from https://gist.github.com/aresler/22c59d7883fd57dddb4c57a7f96603d6 both in PyCharm and system terminal, using the interpreter you're running the test with.