0

Whenever I try to run the code print(“Hello World”) with Code Runner extension in VSCode in Ubuntu 20.04, it shows the output

Command ‘python not found’

enter image description here

But if I right-click in VSCode and choose “Run python file in terminal”, it runs smoothly but not through Code Runner extension.

soulshined
  • 9,612
  • 5
  • 44
  • 79
  • Please don't post pictures, your output is text, you can just copy-paste it. Have you reviewed other similar questions on this topic? Try setting `code-runner.executorMap` https://stackoverflow.com/questions/61497103/code-runner-does-not-work-for-python-in-vscode – soulshined Aug 02 '20 at 16:52
  • @soulshined Thanks a lot. – Mahfuz Enam Aug 03 '20 at 17:10

1 Answers1

0

Go to settings type code runner executor map click on edit in json. look for python. replace python -u with python3 -u