Python Visual Studio Code Module not found

前端 未结 2 1046
心在旅途
心在旅途 2020-12-20 04:01

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

2条回答
  •  误落风尘
    2020-12-20 04:32

    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.

提交回复
热议问题