How to configure Atom to run Python3 scripts?

前端 未结 8 1136
南旧
南旧 2020-11-27 19:12

In my terminal, I type $ which python3, outputting

/opt/local/bin/python3

I would like to configure Atom to run Python3 scrip

相关标签:
8条回答
  • 2020-11-27 19:44

    If you are using Mac OS X, use the directory on the terminal to open the file.

    Select the file python3, right click and select "get info". Select the directory from "Where:" and past it in Atom.

    As Terry told you:

    Then type python3 to the Command space.

    0 讨论(0)
  • 2020-11-27 19:56

    i am using "script" package (3.18.1 by rgbkrk) to run code inside atom and this is how i fixed it

    1. open package settings -> view code
    2. open lib -> grammars -> python.coffee
    3. change from python to python3 in those two places 'Selection Based' and 'File Based'
    0 讨论(0)
提交回复
热议问题