Running Python from Atom

后端 未结 5 928
傲寒
傲寒 2020-12-08 08:44

In Sublime, we have an easy and convent way to run Python or almost any language for that matter using + b (or ctrl + b)

<
5条回答
  •  南方客
    南方客 (楼主)
    2020-12-08 09:29

    Yes, you can do it by:

    -- Install Atom

    -- Install Python on your system. Atom requires the latest version of Python (currently 3.8.5). Note that Anaconda sometimes may not have this version, and depending on how you installed it, it may not have been added to the PATH. Install Python via https://www.python.org/ and make sure to check the option of "Add to PATH"

    -- Install "scripts" on Atom via "Install packages"

    -- Install any other autocomplete package like Kite on Atom if you want that feature.

    -- Run it

    I tried the normal way (I had Python installed via Anaconda) but Atom did not detect it & gave me an error when I tried to run Python. This is the way around it.

提交回复
热议问题