Required packages missing when testing a Python project with pip