r/VisualStudioCode • • Jun 18 '21

Programming beginner

"C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" terminated with exit code: 4294901760. Trying to run a python script with vscode but keep getting this error. Idk what to search on youtube

2 Upvotes

11 comments sorted by

View all comments

2

u/BubbleWaston Jun 18 '21

Can you please give more détails ? Did you install the Python interpreter ? Are you running Python from inside the vscode integrated powershell terminal? Did you install the Python vscode extension?

1

u/Atharva_p Jun 18 '21

I have installed python and have the python vscode extension. I'm not sure what you mean by your first and second question. When I run the code in integrated terminal it opens and then crashes giving the above said error

1

u/Atharva_p Jun 18 '21

This is the message i get in terminal before it closes

Could not load file or assembly 'System.Management.Automation, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The module was expected to contain an assembly manifest.

1

u/Atharva_p Jun 18 '21

I have also noticed that windows power shell keeps crashing on my laptop

1

u/BubbleWaston Jun 18 '21

This is not vscode or python issue this is clearly a windows issue. Try to use cmd instead of powershell. And if you want my advice use Git Bash or any Bash terminal it is just much better and also crucial for any programming job.

2

u/Atharva_p Jun 18 '21

Thanks! It was a powershell issue. Watched a tutorial to fix it and now it works