简体   繁体   中英

Running python in vscode terminal

I want to run python on vscode terminal but when i try to do so i get the following: Execution output

I use the code runner extension and i am enabling 'run code in terminal'option. It used to work for me, but i have tried recently to run python on windows terminal by copying the entire thing vscode generates in it's terminal when building the executable(the path and everything) and pasting it to windows terminal, didn't work. This is what i pasted: C:\Users\Yan\AppData\Local\tmc\vscode\mooc-programming-22\part05-27_letter_square> python -u "c:\Users\Yan\AppData\Local\tmc\vscode\mooc-programming-22\part05-27_letter_square\src\letter_square.py"

Please tell how to fix this and if what i did is the cause, then tell me also how to run python on windows terminal without causing this problem.

The command pasted to the windows terminal has somehow created a file named "python" (with no extension) in the "System32" folder. Delete the file and the problem is solved.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM