Repository navigation
Python interpreter labels are wrong #17553
Copy link
Copy link
Closed
Labels
area-environmentsFeatures relating to handling interpreter environmentsFeatures relating to handling interpreter environmentsbugIssue identified by VS Code Team member as probable bugIssue identified by VS Code Team member as probable bug
Description
Environment data
- VS Code version: 1.61 insiders
- Extension version (available under the Extensions sidebar): v2021.9.1246542782
- OS and version: macOS
- Python version (& distribution if applicable, e.g. Anaconda): 3.9.5
- Type of virtual environment used (N/A | venv | virtualenv | conda | ...): virtualenv
[NOTE: If you suspect that your issue is related to the Microsoft Python Language Server (python.languageServer: 'Microsoft'), please download our new language server Pylance from the VS Code marketplace to see if that fixes your issue]
All the interpreter labels are 2.7, they are actually 3.x
Logs
Output for Python in the Output panel (View→Output, change the drop-down the upper-right of the Output panel to Python)
Python interpreter path: ~/opt/anaconda3/bin/python
> pyenv root
> conda --version
> python3.7 -c "import sys;print(sys.executable)"
> python3.6 -c "import sys;print(sys.executable)"
> python3 -c "import sys;print(sys.executable)"
> python2 -c "import sys;print(sys.executable)"
> python -c "import sys;print(sys.executable)"
> ~/opt/anaconda3/bin/python -c "import sys;print(sys.executable)"
> conda info --json
Starting Jedi Python language engine.
> conda env list
> ~/opt/anaconda3/bin/python -c "import sys;print(sys.prefix)"
cwd: ~/code/jupyter-local
> ~/opt/anaconda3/bin/python -c "import sys;print(sys.prefix)"
cwd: ~/code/jupyter-local
> ~/opt/anaconda3/bin/python -c "import sys;print(sys.executable)"
cwd: ~/code/jupyter-local
> ~/opt/anaconda3/bin/python -c "import sys;print(sys.executable)"
cwd: ~/code/jupyter-local
> ~/opt/anaconda3/bin/python -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())"
cwd: ~/code/jupyter-local
> ~/opt/anaconda3/bin/python -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())"
cwd: ~/code/jupyter-local
> ~/opt/anaconda3/bin/python site --user-site
cwd: ~/code/jupyter-local
> ~/opt/anaconda3/bin/python site --user-site
cwd: ~/code/jupyter-local
> conda env list
> ~/opt/anaconda3/bin/python ~/.vscode-insiders/extensions/ms-python.python-2021.9.1246542782/pythonFiles/completion.py
> ~/opt/anaconda3/bin/python ~/.vscode-insiders/extensions/ms-python.python-2021.9.1246542782/pythonFiles/completion.py
Metadata
Metadata
Assignees
Labels
area-environmentsFeatures relating to handling interpreter environmentsFeatures relating to handling interpreter environmentsbugIssue identified by VS Code Team member as probable bugIssue identified by VS Code Team member as probable bug

Activity
karrtikr commentedon Sep 29, 2021
This actually comes from the old discovery code as you have opted out of experiments. Closing in favor of #17552 (comment).