如何更改Atom使用的Python的默认版本? [英] How can I change the default version of Python Used by Atom?
问题描述
我最近开始使用Atom,在过去的几天中,我一直在研究如何更改Atom中使用的默认版本(默认版本当前为python 2.7,但我想使用3.6).有没有人可以更改默认路径?(我曾尝试将配置文件添加到脚本"包中,但是当我重新启动Atom时,它仍恢复为python 2.7.我们将不胜感激!非常感谢!
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.
推荐答案
我正在使用 Atom 1.32.2
导航到Atom(在左上方)>打开首选项">打开配置"文件夹.
Navigate to Atom (at top left) > Open Preferences > Open Config folder.
现在,将树扩展为脚本> lib>语法
Now, Expand the tree as script > lib > grammars
打开 python.coffee 并将命令参数中的两个位置的'python'更改为'python3'
Open python.coffee and change 'python' to 'python3' in both the places in command argument
这篇关于如何更改Atom使用的Python的默认版本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!