#๐Ÿ”’ i am using vscode as my editor/ide and i cant run my code directly in the terminal

14 messages ยท Page 1 of 1 (latest)

somber crag
#

i can run it using the python extensions "run python file" and it works but in the termial is i write python and then the file app.py it gives this error
python : The term 'python' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the
name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1

  • python app.py
  •   + CategoryInfo          : ObjectNotFound: (python:String) [], CommandNotFoundException
      + FullyQualifiedErrorId : CommandNotFoundException
fathom needleBOT
#

@somber crag

Python help channel opened

Remember to:

  • Ask your Python question, not if you can ask or if there's an expert who can help.
  • Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
  • Explain what you expect to happen and what actually happens.

:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.

worthy coyote
tawny wyvern
eager cobalt
#

if none of these work, try checking your system environment variables if it has the path to the interpretter

tawny wyvern
#

i just got a ghost ping ?

ivory hull
#

I also think it's a path problem or the system may have more than one version of python installed as the error says python term is not recognised.

The system may recognise python3
it may run python3 app.py if it's not a path problem

random bridge
golden kite
hard orbit
#

Or you can ensure that your inside the actual projects folder

fathom needleBOT
#
Python help channel closed for inactivity

This help channel has been closed. Feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.