Permanently set Python path for Anaconda within Cygwin

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

    There is another problem with conda's interpretation of cygwin. When you source the activation script for an environment, it prepends e.g.

    /C/Users/Thomas.Harris/AppData/Local/Continuum/Anaconda3/envs/blah
    /C/Users/Thomas.Harris/AppData/Local/Continuum/Anaconda3/envs/blah/Library/mingw-w64/bin /C/Users/Thomas.Harris/AppData/Local/Continuum/Anaconda3/envs/blah/Library/usr/bin
    /C/Users/Thomas.Harris/AppData/Local/Continuum/Anaconda3/envs/blah/Library/bin
    /C/Users/Thomas.Harris/AppData/Local/Continuum/Anaconda3/envs/blah/Scripts

    to your PATH. However, these are not proper directories in cygwin.

    I fixed this with

    ln -s /cygdrive/c /C

    and then if you create conda environments with specific versions of python they should work.

提交回复
热议问题