I have written a small python package that I would like to install locally through pip. I used to do this by navigating to the package directory with the setup.py file, and then running pip install . after which the pip installer goes through the cycle and notifies me that it succesfully installed the package. When I check pip freeze, it is indeed listed there. However, when I then launch the Python interpreter and try to import my package, it throws a ModuleNotFoundError.
However, when I install through pip install -e ., this is not the case and it imports without problem.
I have used this approach already multiple times with other packages, but I can't seem to find why it keeps failing this particular time. I have already tried it with 2 different virtualenv's, verified I was using the right interpreter each time, but to no avail.
Thanks for the help!