Permanently set Python path for Anaconda within Cygwin

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

    I too was having an issue getting anaconda set up with my Cygwin / Windows 7 system. What worked was the following:

    1. Edited the ~/.bashrc. Add below to the bottom of file.

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

    2. This mapped Cygwin's python to the anaconda distribution as proof by entering which python in Cygwin's console. However, when launching python it would hang up forcing me to ^C out of the command. I found that python -i will launch the interactive python interpreter with no issues.

提交回复
热议问题