Ampersand “&” syntax error running any Python script in VSCode?

Instead of downgrading, you can also change the default terminal from cmd to powershell.
To do so, go to your settings.json and replace the "terminal.integrated.shell.windows" parameter
from the path to cmd (e.g. "C:\\Windows\\System32\\cmd.exe")
to the path to powershell (e.g. "C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe")
If you are using VScode press ctrl+shift+p and search for default terminal and change it to powershell.

Leave a Comment