Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I change the default version of Python Used by Atom?

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.

like image 531
Nazim Kerimbekov Avatar asked Oct 26 '25 08:10

Nazim Kerimbekov


1 Answers

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

like image 67
CryptoManiac Avatar answered Oct 28 '25 22:10

CryptoManiac



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!