Click here to Skip to main content
15,306,376 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
after installing Atom i'm trying to run python scripts but keep getting the same error:
Python was not found but can be installed from the Microsoft Store: ms-windows-store://pdp/?productid=9NJ46SX7X90P
No google result! :-(
any advice?

What I have tried:

i installed python 3.8 & installed "script" package
Updated 21-Aug-21 12:08pm
MadMyche 28-Oct-19 9:45am
Have you installed the "script" package for Atom?
oronsultan 28-Oct-19 9:48am
yes. i forgot to mention that, sorry...
Kornfeld Eliyahu Peter 28-Oct-19 9:58am
Maybe you have some configuration problem, so atom script can not see python even it is installed (PATH maybe)?
oronsultan 28-Oct-19 10:21am
where can i find the python path and where can i change the settings regarding that issue i atom?
Kornfeld Eliyahu Peter 28-Oct-19 10:24am
Python is exactly where you installed it...
About atom setting you should look for the documentation...
Richard MacCutchan 28-Oct-19 10:06am
Does Atom have a configuration file? Do your environment settings include the path to the python executable somewhere? Have you checked the Atom forums?

To resolve, get the path for python and add it to environmental variable (in the right spot!!) - MOVE THE new path above Windows ~Store path is key!

what I did:
Open Command prompt with (cmd) at search in windows
type python
(if python does not start and report version, install python)
type this:
import sys
(the path to your current python.exe will be printed)

I added this and the Scripts folder below it to the Path

(it still failed, augh) - after much searching on Reddit I found this final fix

In the path (I did system path and environmental paths) move up the python and atom paths and move down the Windows default (store path). This resolved the issue after an Atom reboot!
Okay, so the joke is on me.
I didn't know that Atom had to be run from the path where the Python is installed.
Here are the steps I took:
1. I opened cmd
2. cd then the path on which python38.exe is installed (AppData \ Local \ Programs \ Python \ Python38)
3. Type in atom .
First you must know were python is installed, copy the direction, then in Atom clip packages-script-configure script, Its going to ask you "current working directory" paste python folder direction in the box. Thats all.
running python3 using script

After configuring Atom to use it as a python environment (IDE) On MacOS the 'script run' (shortcut cmd-I) will run python2.7
That version of python is needed by the OS and can't be removed.
To make cmd-I run python3 instead replace 'python' with 'python3' in the following file:

Two lines should read:
command: "python3",

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900