How to use conda within cygwin

abarik picture abarik · Jul 23, 2014 · Viewed 13k times · Source

I have Win 7 with Cygwin installed. The cygwin has its own Python 2.7 interpreter. I have installed Miniconda separately for Win 7 (not for Cygwin, not sure if i have to).

So, the thing is I am able to create a new env from cygwin, and able to activate it. However, the activation doesn't seem to do anything??

ambarik@AMBARIK-WS01 ~
$ conda create -n cce python
Fetching package metadata: ..
Solving package specifications: .
Package plan for installation in environment C:\Miniconda\envs\cce:

The following packages will be linked:

    package                    |            build
    ---------------------------|-----------------
    python-2.7.8               |                0   hard-link

Proceed ([y]/n)? y

Linking packages ...
[      COMPLETE      ] |#################################################| 100%
#
# To activate this environment, use:
# > activate cce
#

ambarik@AMBARIK-WS01 ~
$ activate cce
-bash: activate: command not found

ambarik@AMBARIK-WS01 ~
$ /cygdrive/c/Miniconda/Scripts/activate.bat cce
Activating environment "cce"...

ambarik@AMBARIK-WS01 ~
$ which python
/usr/bin/python

How can i use conda within cygwin to install a python package?

UPDATE1: I understand that I manually change the python path to the conda/python/ like described here Installing anaconda to use with windows, but i was looking to see if there are other ways, other than manually modifying the path

UPDATE2: I am trying to actually install pexpect. I realized that the python that gets installed through cygwin comes with resource.dll. However, Python that gets installed via MiniConda doesn't come with it.

Answer

msarahan picture msarahan · Jun 6, 2016

This will be fixed with the Conda 4.1 release. Keep an eye out - coming soon.