No module named "pytest"

I am currently working on a freecodecamp project and when I try to test my code i get no module named “pytest” traceback. When i open cmd and check for version of pytest i get it, so that should mean that I have it installed.
The project is not 100% complete yet, but the code thats is written so far should be able to run.
Here is the screenshot of the traceback and my code:

Hey, @TheMystic3!

Can you please provide a link to the repl? This way it is easier for staff and members of the community to help you!

1 Like

I just did pip install pytest into the shell instead of the cmd and it works now.
Thanks anyway

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.