In VS Code on Ubuntu 20.04, when I press F5 to run a python script, I get:
"The Python path in your debug configuration is invalid."
Here is the relevant part of my launch.json:
"configurations": [
{
"name": "Python: Current File (Integrated Terminal)",
"type": "python",
"python": "/home/ian/anaconda3/bin/python3",
"request": "launch",
"program": "${file}",
"console": "integratedTerminal"
},
I have the correct Debug configutation set:
When I run /home/ian/anaconda3/bin/python3 it works fine.
For what it's worth, in the integrated terminal both
which python
and
which python3
Return /home/ian/anaconda3/bin/python (3)
How can I get VS Code to run python?


"python": "python3"should work