-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Failure to activate Conda Environments created using the --prefix argument (on Unix) #18044
Comments
I cannot reproduce this issue in my linux docker container. I assume you meant cc/ @karthiknadig were you able to reproduce this when triaged?
Is this documented somewhere? Not clear on why this is the approach. I'm fine with doing this in the extension itself using list of named envs if need be. |
Its not documented, but when using the conda terminal, the base env is always activated as a default & that sets up the necessary paths for activation of other environments. |
Why do we need to do |
based on the docs this is the right way. |
I'm fine with this approach, I think the changes would be around vscode-python/src/client/common/terminal/environmentActivationProviders/condaActivationProvider.ts Lines 145 to 149 in f55dfb7
|
Closing in favor of #20087 |
Steps to repro
conda create -p .condaEnv1
I believe the code will only work on Windows.
Suggestion
base
(environments with a name)What I'm doing in my private extension is:
conda activate -n <path>
I believe this will work.
Problems
Hence not really sure how to proceed with this.
@karrtikr @karthiknadig Let me know if you're happy with me just fetching all of the conda environments & then trying that approach.
At the end of the day, thats better than what we have today, as I don't see how it will work (i.e. its better than nothing).
The text was updated successfully, but these errors were encountered: