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

Share:
10,797
Nazim Kerimbekov
Author by

Nazim Kerimbekov

In between an Economist and a Super Ninja Coder

Updated on July 16, 2022

Comments

  • Nazim Kerimbekov
    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
    Nazim Kerimbekov almost 6 years
    Thanks 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
    Joshua Paulsen almost 6 years
    @Fozoro If you can , @ me in the answer when its found. Good luck!!
  • Pooya Estakhri
    Pooya Estakhri almost 5 years
    This 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
    Bryan Hanson about 3 years
    I 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!