Skip to content

Python interpreter labels are wrong #17553

Closed

Description

@roblourens

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

image

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

Activity

  1. added
    bugIssue identified by VS Code Team member as probable bug
    triage-neededNeeds assignment to the proper sub-team
    on Sep 28, 2021
  2. karrtikr commented on Sep 29, 2021

    @karrtikr

    This actually comes from the old discovery code as you have opted out of experiments. Closing in favor of #17552 (comment).

  3. locked as resolved and limited conversation to collaborators on Dec 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

area-environmentsFeatures relating to handling interpreter environmentsbugIssue identified by VS Code Team member as probable bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions