Skip to content

The anaconda environment is not activated automatically when I open the terminal. Although I can see the environment name in terminal, it is not actually activated. The which python command output the base env of the anaconda.Β #25052

@zhanglixuan0720

Description

@zhanglixuan0720

Type: Bug

Behaviour

Open the terminal and find the python virtual env is not activated.

Steps to reproduce:

  1. Select the anaconda virtual python environment

  2. Open one terminal.

  3. type which python in the CML and find the output is the base env instead of configured env.

Extension version: 2025.6.0
VS Code version: Code 1.100.0 (19e0f9e681ecb8e5c09d8784acaa601316ca4571, 2025-05-07T12:48:53.763Z)
OS version: Windows_NT x64 10.0.19045
Modes:
Remote OS version: Linux x64 5.15.0-127-generic
Connection to 'SSH: lixuan-V100' could not be established The remote host does not meet the prerequisites for running VS Code Server

  • Python version (& distribution if applicable, e.g. Anaconda): 3.8.20
  • Type of virtual environment used (e.g. conda, venv, virtualenv, etc.): Conda
  • Value of the python.languageServer setting: Default
User Settings


languageServer: "Pylance"

Installed Extensions
Extension Name Extension Id Version
copilot Git 1.317.0
copilot-chat Git 0.27.0
dart-code Dar 3.110.0
debugpy ms- 2025.8.0
docker doc 0.6.0
flutter Dar 3.110.0
git-graph mhu 1.30.0
js-debug ms- 1.100.0
python ms- 2025.6.0
rainbow-csv mec 3.19.0
vscode-docker ms- 1.29.6
vscode-js-profile-table ms- 1.0.10
vscode-language-pack-zh-hans MS- 1.100.2025050709
vscode-pylance ms- 2025.4.1
System Info
Item Value
CPUs Intel(R) Core(TM) i7-8750H CPU @ 2.20GHz (12 x 2208)
GPU Status 2d_canvas: enabled
canvas_oop_rasterization: enabled_on
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_graphite: disabled_off
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled
webnn: disabled_off
Load (avg) undefined
Memory (System) 15.88GB (4.22GB free)
Process Argv --crash-reporter-id 0d8a2738-fd2a-42a9-ae55-931ac16a44ca
Screen Reader no
VM 40%
Item Value
Remote SSH: lixuan-4090-3
OS Linux x64 5.15.0-127-generic
CPUs AMD EPYC 9654 96-Core Processor (384 x 3694)
Memory (System) 1007.50GB (880.58GB free)
VM 0%

Connection to 'SSH: lixuan-V100' could not be established The remote host does not meet the prerequisites for running VS Code Server

A/B Experiments
vsliv368:30146709
vspor879:30202332
vspor708:30202333
vspor363:30204092
vscod805cf:30301675
binariesv615:30325510
c4g48928:30535728
azure-dev_surveyone:30548225
962ge761:30959799
2e7ec940:31000449
pythontbext0:30879054
cppperfnew:31000557
dwnewjupyter:31046869
pythonrstrctxt:31112756
nativeloc2:31192216
5fd0e150:31155592
dwcopilot:31170013
6074i472:31201624
dwoutputs:31242946
customenabled:31248079
hdaa2157:31222309
copilot_t_ci:31222730
e5gg6876:31282496
pythoneinst12:31285622
bgtreat:31268568
4gafe986:31271826
31787653:31262186
3e8i5726:31271747
996jf627:31283433
pythonrdcb7cf:31303019
usemplatestapi:31297334
7bj51361:31289155
747dc170:31275177
g20af354:31278749
pylancecolorcf:31303817
aj953862:31281341
generatesymbolt:31295002
convertfstringf:31295003
gendocf:31295004
xtabfftm10-2:31302953

Metadata

Metadata

Assignees

Labels

triage-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