VSCode and pytest If your encountering problems running pytest in vscode testing panel, create an .env file with the following: # .env PYTHONPATH="./<package_name>;${PYTHONPATH}" Make sure to add .env to your .gitignore file