I am working with venv in VS code on windows 10, and it kept throwing ModuleNotFoundError, even if I have already tried py -m pip install <package name>. The weirdest part was that pip freeze or pip list returns nothing.
If I navigate to the env/Lib/site-packages folder, I can see that the package folder is already there, so I am assuming the package has been installed.
I think it's worth noting that the above problem only happens after I activated the virtual environment, and pip freeze is still working normally when I am not in venv.
Some details: (can provide more if needed)
- windows 10
- VS code 1.59.0
- python 3.9.6 64-bit
Any help provided would be greatly appreciated!