Quantcast
Channel: Active questions tagged visual-studio-code - Stack Overflow
Viewing all articles
Browse latest Browse all 97327

Visual Studio Code uses 'python' not 'py' to run Python files, which does nothing (3.7 64 bit in PATH)

$
0
0

When trying to run a Python file using Visual Studio Code's terminal window, it's in the format of python -u path_of_python_file but this does not do anything. What does do something is the py command, which runs the file normally.

How can I make it so that Visual Studio Code uses the py command and not python? For example, py C:\Users\...

I have searched for a setting that alters it but I cannot find one. My currently installed Python-related extensions are 'Python' and 'Code Runner' and I have Python 3.7, 64 bit installed. I have tried with a variety of programs including a simple 'hello world' program and it works fine on IDLE and on the command line (using 'py' not 'python').

With this question, I have no such option on the command palette.


Viewing all articles
Browse latest Browse all 97327

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>