S
S
Sergey Y2021-05-11 19:33:58
Visual Studio Code
Sergey Y, 2021-05-11 19:33:58

Trouble running python code in cmd in VS code?

When starting the file, it appends ""&"" and does not run the code, help fix it !!!

C:\VS>& c:/VS/my_Env/Scripts/python.exe c:/VS/21.py
Unexpected occurrence: &.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
H
h7b6, 2021-05-16
@sergey_1990

The same problem, I had to roll back to version 1.55.0 and disable auto updates.
The problem is discussed on the bugtracker https://github.com/microsoft/vscode/issues/123571
After manually updated to 1.55.2, and then manually to 1.56.2, turned on auto-update and everything was fixed. What was the reason is not clear.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question