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 Python version & Interpreter version are different #22532

Closed
mfxrguson opened this issue Nov 27, 2023 · 2 comments
Closed

Terminal Python version & Interpreter version are different #22532

mfxrguson opened this issue Nov 27, 2023 · 2 comments
Assignees
Labels
info-needed Issue requires more information from poster triage-needed Needs assignment to the proper sub-team

Comments

@mfxrguson
Copy link

Hello, I am trying to switch the python version running in terminal to 3.10 from 3.12 and it isn't working. I've changed the interpreter and even the default interpreter filepath to version 3.10 but 3.12 is still running in terminal. I've restarted VS Code/terminal also.

image

image

@github-actions github-actions bot added the triage-needed Needs assignment to the proper sub-team label Nov 27, 2023
@carlfischerjba
Copy link

I don't use Windows or Anaconda, only venvs on Linux, but you might look at a couple of settings:

  • Python > Terminal: Activate Env In Current Terminal
  • Python > Terminal: Activate Environment

I think that if you enable the first, the current terminal have the selected environment activated on it as soon as you select it. If it's not enabled, you will either need to enable it manually with conda activate myenv or open a new terminal via the + button. If the second setting is enabled, you should get your selected environment in all new terminals.

image

@karrtikr
Copy link

karrtikr commented Feb 1, 2024

Terminals are not updated to use the Python version for Global interpreters, even outside VS Code. Try creating an environment using "Python: Create Environment" command and we activate those environment automatically in the terminal.

@karrtikr karrtikr closed this as not planned Won't fix, can't repro, duplicate, stale Feb 1, 2024
@github-actions github-actions bot added the info-needed Issue requires more information from poster label Feb 1, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 3, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
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

3 participants