question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Python: Select Interpreter doesn't list all pyenv interpreters

See original GitHub issue

Environment data

  • VS Code version: 1.21.1
  • Extension version (available under the Extensions sidebar): 2018.3.1
  • OS and version: OS X 10.13.3
  • Python version (& distribution if applicable, e.g. Anaconda): Multiple
  • Type of virtual environment used (N/A | venv | virtualenv | conda | …): pyenv(-virtualenv)
  • Relevant/affected Python packages and their versions: N/A

Actual behavior

See https://github.com/Microsoft/vscode-python/issues/363#issuecomment-378057027

Expected behavior

All pyenv (and pyenv virtualenvs) interpreters should appear in list of interpreters.

Steps to reproduce:

  1. With multiple pyenv versions and virtualenvs, run pyenv versions to get a list of all versions
  2. View list from “Python: Select Interpreters”
  3. Notice that the list in VSCode is incomplete

Logs

Output for Python in the Output panel (ViewOutput, change the drop-down the upper-right of the Output panel to Python)

N/A, only contains linting output

Output from Console under the Developer Tools panel (toggle Developer Tools on under Help)

None

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:11 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
brettcannoncommented, Apr 10, 2018

@neverfox I did see it, but that window can be scrollable so it’s non-obvious if that’s the complete list or not.

Regardless, we think we might know the cause and fixed it in #1353 . If you have time, please try out the development build of the extension and see if this solves your problem.

0reactions
neverfoxcommented, Apr 11, 2018

The alpha version appears to list all interpreters in pyenv. Now if there’s ever a solution to #1167, pyenv users will be mostly set.

Read more comments on GitHub >

github_iconTop Results From Across the Web

VScode doesnt see pyenv python interpreters - Stack Overflow
It works fine in the command line. I can install python versions, set them as global etc. But My VS Code doesn't see...
Read more >
Using Python environments in VS Code
Interpreters installed by pyenv, Pipenv, and Poetry. ... The Python: Select Interpreter command displays a list of available global environments, ...
Read more >
How to Set Default Python Interpreter in VS Code
On your VS code press Ctrl + Shift + P, to open the command palette. · Type and select “Python: Select Linter”. ·...
Read more >
Configure Python interpreters | CLion Documentation - JetBrains
Ensure that you have downloaded and installed Python on your computer. · In the left-hand pane of the Add Python Interpreter dialog, select...
Read more >
How to change Python Version (Interpreter) in VSCode ...
This tutorial will show you the fastest way to change your Python environment in Visual Studio code.00:00 VSCode how to change Python ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found