-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Description
Type: Bug
Behaviour
Today (7th July 2025) I performed a VScode update (to the June release I think). Before the update when I went to the VS Code command palette - Python: Select Interpreter I could see a full list of pyenv options including my custom virtual environments with custom names. After the VScode options all my virtual environment options are missing from the list and all I see is the the pyenv default installed python versions.
This is a screenshot of the issue.

Unfortunately, I do not have a screenshot of when it was working. Please note for this project it correctly suggests the .venv file, however the issue is for projects which use a pyenv-virtualenv instead.
Additionally, when I try to manually enter the interpreter path and point it to the correct virtualenv (and bin/python) it doesn't select it either.
Steps to reproduce:
Install pyenv and pyenv-virtualenv. I followed this guide in the past: https://realpython.com/intro-to-pyenv/.
Install a Python version with pyenv. E.g.
pyenv install 3.11.9
Create a virtualenv with Pyenv with the name test, for instance:
pyenv virtualenv 3.11.9 test
Go to VSCode command palette and Python: Select Interpreter. The virtualenv test should appear as one of the pyenv options in the list to select.
Diagnostic data
Output for Python in the Output panel (View→Output, change the drop-down the upper-right of the Output panel to Python)
XXX
Extension version: 2025.8.0
VS Code version: Code 1.101.2 (2901c5ac6db8a986a5666c3af51ff804d05af0d4, 2025-06-24T20:27:15.391Z)
OS version: Darwin arm64 24.5.0
Modes:
- Python version (& distribution if applicable, e.g. Anaconda): 3.9.6.final.0
- Type of virtual environment used (e.g. conda, venv, virtualenv, etc.): System
- Value of the
python.languageServersetting: Default
User Settings
languageServer: "Pylance"
Installed Extensions
| Extension Name | Extension Id | Version |
|---|---|---|
| autodocstring | njp | 0.6.1 |
| copilot | Git | 1.338.0 |
| copilot-chat | Git | 0.28.5 |
| debugpy | ms- | 2025.11.2025070101 |
| dvc | ite | 1.2.27 |
| even-better-toml | tam | 0.21.2 |
| git-autoconfig | shy | 0.0.2 |
| gitlens | eam | 17.2.2 |
| js-debug | ms- | 1.100.1 |
| js-debug-companion | ms- | 1.1.3 |
| jupyter | ms- | 2025.5.0 |
| jupyter-keymap | ms- | 1.1.2 |
| jupyter-renderers | ms- | 1.1.0 |
| live-server | ms- | 0.4.15 |
| markdown-mermaid | bie | 1.28.0 |
| mermaid-markdown-syntax-highlighting | bpr | 1.7.4 |
| mypy-type-checker | ms- | 2025.2.0 |
| path-intellisense | chr | 2.10.0 |
| python | ms- | 2025.8.0 |
| python-environment-manager | don | 1.2.7 |
| reload | nat | 0.0.7 |
| remote-containers | ms- | 0.417.0 |
| remote-explorer | ms- | 0.5.0 |
| remote-server | ms- | 1.5.2 |
| remote-ssh | ms- | 0.120.0 |
| remote-ssh-edit | ms- | 0.87.0 |
| ruff | cha | 2025.24.0 |
| vscode-containers | ms- | 2.0.3 |
| vscode-coverage-gutters | rya | 2.13.0 |
| vscode-docker | ms- | 2.0.0 |
| vscode-js-profile-table | ms- | 1.0.10 |
| vscode-jupyter-cell-tags | ms- | 0.1.9 |
| vscode-jupyter-slideshow | ms- | 0.1.6 |
| vscode-mermaid-preview | vst | 2.1.1 |
| vscode-pretty-json | chr | 2.3.2 |
| vscode-pylance | ms- | 2025.6.2 |
| vscode-python-envs | ms- | 0.3.11841011 |
| vscode-remote-extensionpack | ms- | 0.26.0 |
| vscode-thunder-client | ran | 2.35.3 |
| vscode-yaml | red | 1.18.0 |
| vsliveshare | ms- | 1.0.5948 |
System Info
| Item | Value |
|---|---|
| CPUs | Apple M1 Pro (10 x 2400) |
| 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: enabled_on video_decode: enabled video_encode: enabled webgl: enabled webgl2: enabled webgpu: enabled webnn: disabled_off |
| Load (avg) | 3, 3, 2 |
| Memory (System) | 16.00GB (0.14GB free) |
| Process Argv | --crash-reporter-id a0076503-65b5-492e-a467-eab648daa22a |
| Screen Reader | no |
| VM | 0% |
A/B Experiments
vsliv368cf:30146710
vspor879:30202332
vspor708:30202333
vspor363:30204092
binariesv615:30325510
c4g48928:30535728
azure-dev_surveyone:30548225
962ge761:30959799
2e7ec940:31000449
cppperfnew:31000557
dwnewjupytercf:31046870
nativeloc1:31192215
5fd0e150:31155592
dwcopilot:31170013
6074i472:31201624
dwoutputs:31242946
customenabled:31248079
hdaa2157:31222309
copilot_t_ci:31333650
e5gg6876:31282496
pythoneinst12:31285622
4gafe986:31271826
c7cif404:31314491
pythonpulldiagcf:31335740
996jf627:31283433
pythonrdcb7:31342333
usemplatestapi:31297334
0aa6g176:31307128
7bj51361:31289155
747dc170:31275177
aj953862:31281341
generatesymbolt:31295002
convertfstringf:31295003
9d2cg352:31339597
convertlamdaf:31329270
0g0a1943:31341127
d7aab740:31338110
usemarketplace:31336439
nesew2to5:31336538
agentclaude:31335815
nes-diff-11:31337487
onetestforazureexp:31335613
6abeh943:31336334
yijiwantestdri0626-t:31336930
4gdec884:31342391