-2

On windows 11 I use pyenv to be able to select a specific python version. I want to select python 3.11.9, and the output of

pyenv versions

is:

  3.10.11
  3.11.8
* 3.11.9 (set by C:\Users\WORK\.pyenv\pyenv-win\version)

However, the installed python version is 3.10.11:

> python --version
Python 3.10.11

How to fix this issue?

3
  • Try changing it locally: pyenv local 3.11.9 Commented Aug 20 at 5:57
  • Changing it locally also does not work, python --version is still 3.10.11 Commented Aug 20 at 6:09
  • Check the path order Commented Aug 21 at 9:11

1 Answer 1

0

Pyenv is not made for windows. see https://github.com/pyenv/pyenv?tab=readme-ov-file

Have you tried pyenv-win (https://github.com/pyenv-win/pyenv-win)?

Sign up to request clarification or add additional context in comments.

4 Comments

I remember to have this installed. How to check that I use pyenv (the windows pyenv) and not pyenv (the not-windows pyenv)?
@Alex start a python prompt and use help("modules") then look for pyenv.
pyenv does not seem to be in that list
@Alex all right, well I just tried on my Windows, which has pyenv-win and it is in the list.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.