Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

conda env on windows 8 not working #1622

Closed
wgwz opened this issue Sep 16, 2015 · 3 comments
Closed

conda env on windows 8 not working #1622

wgwz opened this issue Sep 16, 2015 · 3 comments
Labels
locked [bot] locked due to inactivity

Comments

@wgwz
Copy link

wgwz commented Sep 16, 2015

I'm sure I am missing something stupid.

In windows powershell:

conda create --name kyle flask
Fetching package metadata: ....
Solving package specifications: .
Package plan for installation in environment C:\Users\Jo\Anaconda\envs\kyle:

The following NEW packages will be INSTALLED:

flask:        0.10.1-py27_1
itsdangerous: 0.24-py27_0
jinja2:       2.8-py27_0
markupsafe:   0.23-py27_0
pip:          7.1.2-py27_0
python:       2.7.10-1
setuptools:   18.1-py27_0
werkzeug:     0.10.4-py27_0
wheel:        0.24.0-py27_0

Proceed ([y]/n)? y

Linking packages ...
[      COMPLETE      ]|##################################################| 100%
#
# To activate this environment, use:
# > activate kyle
#
PS C:\Users\Jo> activate kyle
Activating environment "kyle"...
PS C:\Users\Jo> conda env list
# conda environments:
#
kyle                     C:\Users\Jo\Anaconda\envs\kyle
venv                     C:\Users\Jo\Anaconda\envs\venv
root                  *  C:\Users\Jo\Anaconda

Clearly I am still in the root environment. I have also tried doing this in Cygwin. Which would be the preferred location to get things working.

Here is the relevant part of my .bashrc in Cygwin.

export PATH=/cygdrive/c/users/jo/anaconda:$PATH
export PATH=/cygdrive/c/users/jo/anaconda/scripts:$PATH
export PATH=/cygdrive/c/users/jo/anaconda/envs/venv:$PATH

Here is the behavior in cygwin:

Jo@Monk ~
$ activate.bat venv
Activating environment "venv"...
$ conda env list
# conda environments:
#
kyle                     C:\users\jo\anaconda\envs\kyle
venv                     C:\users\jo\anaconda\envs\venv
root                  *  C:\users\jo\anaconda

activate is recognized in powershell, but not in cygwin. activate.bat is recognized in cygwin as well as powershell.

I cannot switch to the environments either way. Using native windows powershell or cygwin terminal.

@willyd
Copy link

willyd commented Oct 21, 2015

conda activate is known to be broken in Powershell. See: #626.

@wgwz
Copy link
Author

wgwz commented Oct 21, 2015

The problem is that I was trying to use a Windows install of Anaconda through a Cygwin terminal. This cannot be done, as far as I know. If using Cygwin, one needs to install a Linux version of Anaconda in Cygwin.

@wgwz wgwz closed this as completed Oct 21, 2015
@github-actions
Copy link

Hi there, thank you for your contribution to Conda!

This issue has been automatically locked since it has not had recent activity after it was closed.

Please open a new issue if needed.

@github-actions github-actions bot added the locked [bot] locked due to inactivity label Nov 28, 2021
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 28, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
locked [bot] locked due to inactivity
Projects
None yet
Development

No branches or pull requests

2 participants