Skip to content

Failed to switch environment #25556

Closed as not planned
Closed as not planned

Description

@tendrillion

Does this issue occur when all extensions are disabled?: Yes/No

  • VS Code Version: 1.102.0
  • OS Version: ubuntu 22.04

Steps to Reproduce:

  1. Switch to the environment created by venv (python3 -m venv cs)。
  2. install the dependency package in the terminal of VSCode. The expectation is that the package will be installed in the virtual environment (cs), but in reality, it is installed in the path (~/.local/lib/python3.10/site-packages), resulting in the installation package being unusable.
  3. there is not cs environment in the sys.path.
  4. If you manually switch environments in the terminal of VSCode(source ~/venv/cs/bin/activate), everything will work normally.
Image Image

Activity

  1. removed their assignment
    on Nov 2, 2025
  2. eleanorjboyd commented on Nov 5, 2025

    @eleanorjboyd
    Member

    Hi! Can you try adding the setting python.useEnvironmentsExtension, reload the page and try again? Let me know if this changes the behavior at all as this should help me narrow down the root cause. Thanks

  3. github-actions commented on Dec 6, 2025

    @github-actions

    Because we have not heard back with the information we requested, we are closing this issue for now. If you are able to provide the info later on, then we will be happy to re-open this issue to pick up where we left off.

    Happy Coding!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

info-neededIssue requires more information from postertriage-neededNeeds assignment to the proper sub-team

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions