I’ve been trying to install VS Code on to a new laptop, and getting Python to work has taken a while. Now that it does, I’ve noticed an odd quirk; although using the visual run button compiles and executes the file, executing python file_name.py
executes only the version of the file that was most recently compiled using the run button.
I’ve looked around a little, tried editing the task manager and included Python in the path variable, but I can’t find any documentation around this specific issue. I know it’s certainly an issue of me looking in the wrong place, but if anyone can suggest where I could even begin to look for a solution I would be very grateful.
Samuel Stern is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
1