Pytest can not find a package

When I run the pytest and got the following error.

I was using conda and when I go to the python interactive mode, I can import the package from there.

The solution to fix the problem

It seems there is a path conflict between the default pytest and the pytest installed by conda. What I did to fix the issue was install pytest through conda by using the command below:

Then everything works.

Data Scientist/MLE/SWE @takemobi