Running Python on Atom


#1

Beginner here, I installed Python 3 and have installed atom packages to run, but I haven’t been able make it work. Using Windows 10 and Python 3.6.3. I tried to add an environmental variable to PATH and Python works on the cmd prompt but it’s not recognized in Atom. Do I need to save Python files in a specific folder to run on Atom? Thanks for any help!
First I tried with package script 3.17.3 but Python wasn’t recognized


I also tried with package platformio-ide-terminal 2.7.0 but again not recognized. Python 3.6.3 is definitely downloaded and named python.exe.

And I tried to make an environment variable on PATH to it (from another help forum), I’ll upload a screenshot of that in a comment. Thank you again!


How to run python in atom
#2

Here’s the environment variable PATH


I manually added the last line in list


#3

Try the script package, worked for me without modifying PATH- Script for Atom


#4

Have you closed and reopened Atom since installing Python?


#5

The output in the screenshot is script. And whether or not you have to modify the PATH is determined by what you’re installing, not by what Atom package you choose.


#6

Yes I tried using the script package but python wasn’t recognized. The first image has script enabled


#7

Yes I’ve restarted atom and in fact, my whole computer since installing python


#8

Hello.

Sorry to hear about your troubles.
Please could you try to mimic as exact as possible the following picture:
I have used Window’s Command Prompt application.
image

Please publish the screen capture of your result.

Cheers.


Problem with Script - Does not recognize Python
'python' is not recognized as an internal or external command
#9

I think all of the common causes are covered, so this will require you to perform some deeper investigation. Fortunately, there’s a package that’s perfect for that. process-palette lets you execute any command from within Atom. You can use a terminal package too, but this one lets you customize a lot of the variables and save all of your configurations. All I want you to do right now is run the commands env and python -v.


#10

Done
Screenshot (18)


#11

Update so it works now and I’m not sure why. I opened a new project folder which may have helped. Thanks everyone for your help