When I tried to introduce python3 to atom, I got stuck

Purpose

I want to be able to use python3 with atom

environment

Mac python3.8.2 atom-runner installed anaconda installed

Clogged

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)

solution

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

When I tried to introduce python3 to atom, I got stuck
I tried to introduce Pylint
I tried to touch Python (installation)
When I made CaboCha usable with python3, I got stuck (Windows 10)
I got stuck when trying to specify a relative path with relative_to () in python
When I tried to use Python on WSL (windows subsystem for linux), it got stuck in Jupyter (solved)
I tried to summarize Python exception handling
I tried to implement PLSA in Python
I tried to implement permutation in Python
I tried to implement PLSA in Python 2
Python3 standard input I tried to summarize
I tried to implement ADALINE in Python
I tried to implement PPO in Python
[Python] I tried to calculate TF-IDF steadily
I tried to touch Python (basic syntax)
When I tried to run Python, it was skipped to the Microsoft Store
A reminder of what I got stuck when starting Atcoder with python
I refactored "I tried to make Othello AI when programming beginners studied python"
I tried to get CloudWatch data with Python
I tried to output LLVM IR with Python
I tried to implement TOPIC MODEL in Python
I tried to automate sushi making with python
I got stuck installing Anaconda 4.3.0 which became Python 3.6
What I did when updating from Python 2.6 to 2.7
I tried to implement selection sort in python
I tried Python> autopep8
I tried to debug.
I tried to paste
I tried Python> decorator
When I tried to create a virtual environment with Python, it didn't work
What I did when I got stuck in the time limit with lambda python
When I tried to connect with SSH, I got a warning about free space.
I referred to it when I got stuck in the django geodjango tutorial (editing)
I tried to graph the packages installed in Python
I tried to summarize how to use matplotlib of python
I tried to implement Minesweeper on terminal with python
I tried to get started with blender python script_Part 01
I tried to touch the CSV file with Python
I tried to draw a route map with Python
I tried to solve the soma cube with python
I tried to implement a pseudo pachislot in Python
Continuation ・ I tried to make Slackbot after studying Python3
I tried to get started with blender python script_Part 02
I tried to implement Dragon Quest poker in Python
I tried to implement an artificial perceptron with python
I tried to implement GA (genetic algorithm) in Python
[TensorFlow] I tried to introduce AI to rolling stock iron
[Python] I tried to graph the top 10 eyeshadow rankings
I tried to automatically generate a password with Python3
I tried to summarize how to use pandas in python
I tried to solve the problem with Python Vol.1
I tried to analyze J League data with Python
[Python] I tried to get Json of squid ring 2
What I was addicted to when using Python tornado
I tried to access Google Spread Sheets using Python
I want to do something in Python when I finish
I tried to summarize the string operations of Python
I tried to solve AOJ's number theory with Python
A story that got stuck when trying to upgrade the Python version on GCE
I tried fp-growth with python
I tried scraping with Python