How can I change the default version of Python Used by Atom?
10,797
I am using script 3.18.1 in Atom 1.32.2
Navigate to Atom (at top left) > Open Preferences > Open Config folder.
Now, Expand the tree as script > lib > grammars
Open python.coffee and change 'python' to 'python3' in both the places in command argument
Comments
-
Nazim Kerimbekov almost 2 years
I have started using Atom recently and for the past few days, I have been searching on how to change the default version used in Atom (The default version is currently python 2.7 but I want to use 3.6). Is there anyone I can change the default path? (I have tried adding a profile to the "script" package but it still reverts to python 2.7 when I restart Atom. Any help will be hugely appreciated!! Thank you very much in advance.
-
Nazim Kerimbekov almost 6 yearsThanks for your answer, I have a python package but sadly there isn't any way to change the path nor the version of python I want Atom to use
-
Joshua Paulsen almost 6 years@Fozoro If you can , @ me in the answer when its found. Good luck!!
-
Pooya Estakhri almost 5 yearsThis worked for me just two points to add: Expand tree as Packages > script > lib > grammars and after changing python to python 3 restart atom to see changes taking effect.
-
Bryan Hanson about 3 yearsI had to edit
python.js
in/Users/bryanhanson/.atom/packages/script/lib/grammars
in Atom 1.56 on Mac BigSur, and Script 3.31.1 Thanks for the tip!