Using anaconda environment in Atom

后端 未结 6 743
自闭症患者
自闭症患者 2020-12-04 13:49

I\'ve install Anaconda (Python 3.6) and tensorflow (python 3.5). I\'ve managed to get it run both on Spyder and on sublime text 3( by making new build system). Now all the

6条回答
  •  无人及你
    2020-12-04 14:10

    I had this same issue, and after some exploring, found that this worked well:

    There is a file (I'm on macOS Catalina 10.15.3):

    ~/.atom/packages/platformio-ide-terminal/lib/platformio-ide-terminal.coffee

    Look for the autoRunCommand section:

    autoRunCommand:
    title: 'Auto Run Command'
    description: 'Command to run on terminal initialization.'
    type: 'string'
    default: ''

    If you set the default to:

    'export PATH=~/opt/anaconda3/bin:$PATH'

    platformio will execute this command every time you start Atom, and it will use the default anaconda python, as specified in the new PATH.

    You can then type "conda activate myenvironment" in the platformio terminal and it will work like normal (switch between environments, install packages, etc.). Hope this helps.

提交回复
热议问题