使用conda envieronment与cygwin

时间:2017-09-27 21:32:31

标签: python cygwin anaconda conda

我试图通过cygwin使用conda,我做的远远是:

$ echo 'export PATH=/cygdrive/c/users/yoav/anaconda2:$PATH' >> .bashrc
$ source /.bashrc
$ which python
/cygdrive/c/users/yoav/anaconda2/python
$ conda env list
-bash: conda: command not found

然后,如果我只是python,那就像那样

$ python

并且只有空行和没有python功能但是当我输入

$ pythin -i
$ python -i
Python 2.7.13 |Anaconda 4.4.0 (64-bit)| (default, May 11 2017, 13:17:26) 
[MSC v.1500 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
Anaconda is brought to you by Continuum Analytics.
Please check out: http://continuum.io/thanks and https://anaconda.org
>>> 5+7
12

它会启动anconda python。

另一件事是,如果我关闭终端并重新打开它,看起来.basrc似乎没有运行,因为:

$ which python
/usr/bin/python

$ source /.bashrc

$ which python
/cygdrive/c/users/yoav/anaconda2/python

很想听听有关解决这些问题的一些建议。

0 个答案:

没有答案