ModuleNotFoundError:

I’m working on a django project
as an editor I use vscode
I installed a virtual environment and installed django without problem.
I also installed the qrcode module, but the problem arises when I try to import it.
I have this message:
ModuleNotFoundError: No module named ‘qrcode’.
when I do a pip freeze, I indeed find the qrcode module installed,
Help me please


I don’t know what might be causing this directly, but I can say that this error can be thrown when the module is found but there is some problem within the module itself. (For example, if that module is trying to import something and what it’s trying to import is missing, then you would get this error.)

To try and get more information from this, you can run python with the -v parameter to have it show all the imports. Then, when you get to the prompt and try to import qrcode again, you should get more information about where the problem may be.