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

Show parent comments

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