When you edit Python files in Visual Studio Code you should select interpreter path command to specify which version of Python you want to use, as showed in Figure 2: The problem arise because Visual Studio Code is not using the very same installation of python you are using from your command line / terminal. One of the most annoying problem is receiving a no module named xxx error when you already installed that module with pip.įigure 1: No module error when running Python code in Visual Studio Code I’m not a Python expert, but I used it more often these days and I use Visual Studio Code with Python extension to author my scripts.
0 Comments
Leave a Reply. |