Cant run python


#1

Just downloaded atom and installed the script add-on but when i try to run my python code it gives me this error

‘python’ is not recognized as an internal or external command, operable program or batch file.

[Finished in 0.073s]


#2

Have you installed Python?


#3

Yes
if i cmd and type python it tells me everything is wroking fine


#4

Have you closed and reopened Atom since you installed Python? If you can use it from the command prompt, then Atom can definitely see it, but you have to make sure that the program picks up the new environment variable.


#5

yea after instaling it i closed atom but no luck


#6

Try using a terminal package (such as termination) to run the command echo %PATH% inside Atom and see if the Python folder is included on that list.


#7

When you search for that error on this very forum, you find many entries that will help you solve the problem. Here’s one:


#8

Thatnks but I have already tried thous methods


#9

What do you see when you look at the PATH variable from inside Atom?


#10

This post was flagged by the community and is temporarily hidden.


#11

This post was flagged by the community and is temporarily hidden.