Fix /bin/sh: 1: python: not found Visual Studio on Linux
Visual Studio is one of the best code editors. Today I was trying to code python here. I found /bin/sh: 1: python: not found problem occurring on my Linux kernel. I searched for a solution online But did not get any good solution.
I tried to check on the terminal what happens if I run only the python command. Then I saw there is no python. It was updated to python3.
Then I figured out that the setting of the code runner has to change. The way I fixed it:
- Go to code runner and click on the settings icon.
- Click on Code-runner: Executor Map
- Edit in settings.json
- Go to 31 no. line
- Change the python to python3
- That’s it.
Now save it and try to run your python code. It will work then.
Thank you so much it just worked
You are welcome.