Permanently set Python path for Anaconda within Cygwin

后端 未结 8 1726
盖世英雄少女心
盖世英雄少女心 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?

提交回复
热议问题