In my case, I installed the package that I'm trying to install with pip install . . It turns out I have to make it editable using pip install -e . so that the package that is run is in the src not in the pip's directory
pip install .
pip install -e .
src