Unable to run the Python code in Atom


#1

I have installed Atom along and downloaded SCRIPT package.
When I RUN the basic code in the sample file saved with .py extension
It throwing an error
’python’ is not recognized as an internal or external command,
operable program or batch file.
[Finished in 0.183s]

New to Python and ATOM help in running the code
sample1.py
a=[1,2,3,4]
print(a)


#2

Have you installed Python on your computer?


#3

Yes I have Installed Python 3.6

Does it requires any configuration process ?


#4

That’s not what the error says. The error says that Atom can’t find python. You should check your PATH environment variable and make sure that the bin/ folder for Python 3.6 is in that list. After you’ve added it, or if it’s already there, then restart Atom.