ModuleNotFoundError: No module named 'py test' on replit.com

I have found is adding required modules manually in the replit.nix file (it’s hidden, you will need to click three dots at the right of the Files tab and click Show hidden files ). Then add the required modules in the deps , for this project it should look like this:

deps = [
pkgs.python38Full
pkgs.python38Packages.pytest
];

Thank you

2 Likes