As soon as I click 'Run Python File in Terminal', it does nothing, no errors, nothing just remains idle, but if I run the same file with the python IDLE, it works, I re-installed the latest version of Python and VS Code but still the problem isn't solved.
Also, the Terminal shows a Powershell advert and doesn't show the path like it usually should.
Edit: Powershell shows an advert and doesn't work properly
The code runs properly in CMD
The VS Code extensions I use are:
- Bracket Pair Colorizer
- Code Runner
- Jupyter (Idk what it does but VS Code prompted me to install it for Python)
- Live Server
- Material Icon Theme
- Pylance (Idk what it does but VS Code prompted me to install it for Python)
- Python
This is the content of settings.json
{
"editor.fontSize": 18,
"[html]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"window.zoomLevel": -1,
"workbench.colorTheme": "Default Dark+",
"workbench.editorAssociations": [],
"python.languageServer": "Pylance",
"editor.mouseWheelZoom": true,
"code-runner.clearPreviousOutput": true,
"code-runner.saveAllFilesBeforeRun": true,
"code-runner.saveFileBeforeRun": true
}
Because of this problem, I ignored VS Code and installed PyCharm and I am having no issues with it.
question from:
https://stackoverflow.com/questions/65899266/vs-code-is-not-running-python-programs-and-is-showing-a-powershell-advert-on-the 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…