Permanently set Python path for Anaconda within Cygwin

后端 未结 8 1721
盖世英雄少女心
盖世英雄少女心 2020-12-13 06:32

I\'m trying to install Anaconda on my Windows 7 machine. I often use cygwin to for my command-line work, and I would like to manage Anaconda from there. I\'ve worked through

相关标签:
8条回答
  • 2020-12-13 07:27

    Regarding setting your path permanently, edit the .profile in your home directory (it's a hidden file).

    .profile (other names are also valid, see the bash man page) contains bash commands. It is executed when bash is started as login shell.

    At the bottom of this file, put your set path command:

    export PATH=/cygdrive/c/anaconda:$PATH
    

    As for why python is hanging, please provide more information - for example what's the output of python -v?

    0 讨论(0)
  • 2020-12-13 07:28

    Once the Cygwin path is updated as mentioned above, you can also add an alias in the .bashrc file:

    alias python='python -i'
    

    This will bring up the Anaconda python interpreter in interactive mode from a Cygwin bash prompt

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