Visual studio code - terminal issue

160 Views Asked by At

I'm trying to solve the problem with running python files in vsc on Windows. When I do it with the arrow on the right side I got this output:

python -u "c:\Users\Uytkownik\Desktop\pyth\sss.py"
C:\Users\Użytkownik\AppData\Local\Microsoft\WindowsApps\python.exe: can't open file 'c:\\Users\\Uytkownik\\Desktop\\pyth\\sss.py': [Errno 2] No such file or directory

It is caused by the fact that VSC skips polish letter "ż" (In the running command we can see Uytkownik instead of Użytkownik). I installed some language packs but it doesn't solve the problem with running. Is this any possibility to unable to type the letter "ż" in the terminal(type polish letters).

1

There are 1 best solutions below

0
JialeDu On

You should be using the Code Runner extension to run your code. This may have caused some problems.

Please run the code using another Run Python File option under the play button, this will run the code using the Python extension.

enter image description here

Although on my machine both are fine. But for you, dropping Code Runner might solve the problem.

enter image description here

enter image description here