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

Terminal can't switch to the conda env which is created by python extension #24791

Open
HyphyPan opened this issue Feb 6, 2025 · 1 comment
Assignees
Labels
info-needed Issue requires more information from poster triage-needed Needs assignment to the proper sub-team

Comments

@HyphyPan
Copy link

HyphyPan commented Feb 6, 2025

I created a Conda environment, and after switching the Python environment to this new environment, I found that the terminal is still using the global Python environment, which is inconsistent with the Conda environment I created. After checking the logs, I discovered that there was an error when switching the Conda environment: 'EnvironmentNameNotFound: Could not find conda environment: .conda'.

Image

Image

Image

@github-actions github-actions bot added the triage-needed Needs assignment to the proper sub-team label Feb 6, 2025
@karthiknadig
Copy link
Member

@HyphyPan Can you share the entire log?

You can try adding this setting to your user settings, and reload VS Code to see if it helps:

    "python.experiments.optOutFrom": ["pythonTerminalEnvVarActivation"]

@github-actions github-actions bot added the info-needed Issue requires more information from poster label Feb 6, 2025
@karthiknadig karthiknadig self-assigned this Feb 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
info-needed Issue requires more information from poster triage-needed Needs assignment to the proper sub-team
Projects
None yet
Development

No branches or pull requests

2 participants