Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to use conda within cygwin

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.

like image 503
amulllb Avatar asked Jul 23 '14 21:07

amulllb


Video Answer


2 Answers

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

like image 160
msarahan Avatar answered Oct 08 '22 12:10

msarahan


Cygwin will probably work with the Unix activate and deactivate scripts. Try putting them in Anaconda\Scripts and use source activate envname and source deactivate.

like image 34
asmeurer Avatar answered Oct 08 '22 13:10

asmeurer