how to set and run different python3 environment versions from komodo edit while in anaconda\env?

前端 未结 1 555
情深已故
情深已故 2021-01-28 03:37

How do I set the command run tool for a second environment of python in Komodo Edit?

By default the windows environmentals guide Komodo to X:\\folder1\\Anaconda\\py

相关标签:
1条回答
  • 2021-01-28 03:47

    It was quite cumbersome to find a fitting short-cut solution (keeping it in the python3 environments) but if you don't use python version 2.x any longer and haven't installed it; the following can be done:

    1. Go to Edit\Preferences
    2. then under subheading "Languages" go to "Python" Default Python Interpreter
    3. here you select the right path, for example "X:\folder1\Anaconda\envs\MKL2018\python.exe"
    4. apply and close the tab.

    Thereafter you can create a new ktf-file with:

    komodo.doCommand('cmd_saveAll');
    ko.run.output.kill(-1);
    setTimeout(function(){
       ko.run.runEncodedCommand(window, '%(python) \"%F\" {\'cwd\': u\'%D\'}');
    }, 100);
    

    ... now keep in mind to use the '%(python) instead of '%(python3)

    ... voila and you're done...

    0 讨论(0)
提交回复
热议问题