Skip to content Skip to sidebar Skip to footer

How To Start Debugging Python 3.6 In Visual Studio Code?

I'm trying to create some script using this IDE but I can't make it work. I installed Python 3.6, added to path (it's visible finally), installed Python extension (from Microsoft I

Solution 1:

It worked for me going into ~/.vscode/extensions/, deleting the extension's folder manually and reinstalling it again.

Solution 2:

In vscode do the following...

  1. ctrl + shift + p
  2. Select Python: Create Terminal. this should get rid of "command 'python.setInterpreter' not found" problem
  3. ctrl + shift + p
  4. Select Python: Select Interpreter
  5. Select the path to your virtual environment folder. This will now create a .vscode folder in the root directory of your folder and the settings file with "python.pythonPath": "venv\\Scripts\\python.exe" in it
  6. You might get "Linter pylint not installed" notification at the bottom
  7. Run pip install -U pylint
  8. Open a document and you should not see the notification anymore

Solution 3:

One way to tackle this problem in Visual Studio Code is to the downgrade the version of Python extension from Microsoft. It can be very easily done through the Visual Studio Code interface. Locate the installed extension using the extension tab, and right click on the extension. Then You will find an option "Install Another Version...". Click on that and you will find a bunch of versions. Select the one that was published, for example, a month ago. Try to see if it works. If it does not, try with the other (preferably older) ones.

Post a Comment for "How To Start Debugging Python 3.6 In Visual Studio Code?"