John
John

Reputation: 1021

VScode doesnt see pyenv python interpreters

I installed pyenv-win on my windows machine. It works fine in the command line. I can install python versions, set them as global etc. But My VS Code doesn't see them. It only sees one python interpreter I installed a long time ago when I wasn't using pyenv yet.

VScode: enter image description here

pyenv:

C:\Users\jbron\cmder
λ pyenv versions
  3.7.0
* 3.8.0 (set by C:\Users\jbron\.pyenv\pyenv-win\version)

Why is it not finding my pyenv interpreters? I don't have problems like that on my Linux machines

Upvotes: 6

Views: 10309

Answers (1)

Jill Cheng
Jill Cheng

Reputation: 10372

It is recommended that you try the following:

  1. Please check whether the Python environment variable contains your installed Python path:

    enter image description here

  2. Please reopen VSCode after installation:

    enter image description here

Update:

The environment variable path of "pyenv" I use is: (Under this path, we can find Python 3.6.7 downloaded by pyenv)

enter image description here

enter image description here

We can see the storage location where it downloaded Python 3.6.7:

 C:\Users\...\.pyenv\pyenv-win\install_cache\python-3.6.7-amd64-webinstall.exe

Double-click to install:

enter image description here

Upvotes: 2

Related Questions