pyenv-win-venv icon indicating copy to clipboard operation
pyenv-win-venv copied to clipboard

Pyenv-win-venv installing wrong python version into new venv

Open enricojr01 opened this issue 10 months ago • 2 comments

Image

This is on a fresh install of pyenv-win-venv, when I try to create a new venv it puts the wrong version in the venv. I want 3.11.9 and end up with 3.10.4 instead. I don't even have 3.10.4 installed through pyenv, and I'm pretty sure it's not even installed on the system at all.

What could the issue here be?

enricojr01 avatar Feb 17 '25 16:02 enricojr01

@enricojr01 same issue with https://github.com/pyenv-win/pyenv-win-venv/issues/32

You should check your windows environment variable path, ensure below pyenv-win path above all system python path:

Image

Then, restart your shell, delete the old env, recreate a new work, it should work

hj24 avatar Mar 25 '25 10:03 hj24

This fixed it, thank you 👍

enricojr01 avatar Apr 05 '25 08:04 enricojr01