I want to be able to use python3 with atom
Mac python3.8.2 atom-runner installed anaconda installed
Most of the articles migrating to python3 rewrite the following part of atom-runner.coffee.
defaultScopeMap:
coffee: 'coffee'
js: 'node'
ruby: 'ruby'
python: 'python' #Rewrite to python3
go: 'go run'
shell: 'bash'
powershell: 'powershell -noninteractive -noprofile -c -'
After that, when I checked the version of python, it was still python2 series.
import sys
print(sys.version)
It was solved by rewriting the config file from Atom> config and restarting atom.
"*":
runner:
scopes:
python: "/opt/anaconda3/bin/python3"#Own environment
core:
disabledPackages: [
"japanese-menu"
]
"exception-reporting":
userId: "dcebef55-f8d8-4244-ba97-e2a8fbc12a59"
runner:
scopes:
python: "python3"
Check the version.
import sys
print(sys.version)
#result
3.7.6 (default, Jan 8 2020, 13:42:34)
[Clang 4.0.1 (tags/RELEASE_401/final)]
Recommended Posts