-
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
Conda activation does not work in Terminal #5764
Comments
python
points to default python
interpreter
I have exactly the same problem. Conda env activation doesnt't work from vscode, but works fine from iTerm/Terminal. |
I seem to be having the same problem (identical to microsoft/vscode#72188) |
OS: windows10 |
Same problem. Wonder how to solve it in macos |
checking off the 'inherit Env' in settings solved this issue on my mac |
@DonJayamanne would the proposed solution below work? Do you think this could cause problems for those who are not using conda?
|
Yes we can do that, however I'm tempted to do the following:
Changing settings without users consent is not something we should be doing.
Yes. My suggestion is to do this ONLY when user is using conda. Not otherwise. I.e. minimize the number of users that will be impacted by this change.
Not that I'm aware of. We can find out. |
See PR in progress #6959 |
Prescribed solutionCool, so if it isn't a Windows machine and if the selected interpreter is a conda environment and "terminal.integrated.inheritEnv" is not set on the user's user settings, we can prompt the message below: "We noticed you're using a conda environment. If you are experiencing issues with this environment in the integrated terminal, we suggest the "terminal.integrated.inheritEnv" setting to be changed to false. Would you like to update this setting?" And add telemetry for the yes selection, so we can know if this is actually solving the issue. |
Closing in favour of #7607 |
Environment data
Expected behaviour
When a conda environment activated using
conda activate xxx
, then usingpython xxx
will point to the activated environment.Actual behaviour
Even though a conda environment has been activated,
which python
will point to the wrong environment.Steps to reproduce:
conda activate xxx
which python
Tracked here #5344
Upstream issue microsoft/vscode#70248
The text was updated successfully, but these errors were encountered: