I am not able to run python codes on vscode terminals . When I try to run the code , For example :-
python detectline.py
It first asks me to chose an app to open the file , I tried selecting vscode itself or browser. It opens this path C://Windows//Systems32//python
Here is what i get :
I am able to run these on command prompt . Im also able to run other commands like streamlit run file.py , its just the python command that is behaving this way
I encounter this from today , it worked good before
Here are the biggest thing I did today which could have caused something if in case :
- Kill a process in a port manually, it was of postgres.exe which i had used days before and i thought its not required as i noticed my usual streamlit running on a different port
- Install a package and put it as a path variable (new one)
I would gladly provide any more info if required.
Forgive if my English is bad at places. It is not my first language
I have tried to test with the command prompt, check the path, and search for similar problems online… One similar issue I found on this site wasnt well asked and answered..
Running python in vscode terminal