Problem
When testing a Python project with the Snyk CLI, you sometimes get the following error:
Please run `pip install -r requirements.txt`. If the issue persists try again with --allow-missing.
Resolution
First, make sure that you have installed your Python packages by running the command suggested in the error (adjusting the filename as necessary):
pip install -r requirements.txt
If the issue persists, then you can bypass missing Python packages by passing the --allow-missing
pip parameter through snyk by using the parameter as an additional argument:
snyk test --org=org --file=requirements.txt -- --allow-missing