Have installed Python 3.7.6 and am trying to write a code in Visual Studio Code
Using: import pikepdf
Gets me the error of ModuleNotFoundE
The issue was that Visual Studio Code comes with its own version of Python, while I had installed my own.
The issue was solved by changing the version VSC was running so it matched the one where the modules were being installed.
You can check which environment your VSCode is using. You can do that by inspecting your left-bottom corner, here:
When you are running your code, you are using python
or python3.7
?