2

Today I installed two different versions of python on my windows 11 machine:

  • python 3.14.0 installed using executable downloaded from python repository
  • python 3.10.10 installed using

pyenv install

command.

Now when I do:

python --version

I will get

python 3.14.0

which is predictable.

And when I do:

pyenv versions

it only gives:

3.10.10

This means that pyenv can not see the installation of other python (which is installed manually) and vice versa. I tried to manually add the installation path of 3.14.0 to PATH variable but it did not help.

Why this happens and how I can control this "Scope" issue?

2 Answers 2

3

The conflict is in the design features of pyenv and normal installation. pyenv ignores system installs to maintain isolation. For fixing this let pyenv to manage everything by uninstalling the manual version and reinstalling it via pyenv.

New contributor
Ankit kumar is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct.
Sign up to request clarification or add additional context in comments.

Comments

1

the thing about python and how to install it, it's one of the rare exceptions reading the manual labelled something akin to 'how to install' before you click yes makes sense, after i brew installed python a whole slew of issues arose so i learnt my lesson.

1 Comment

Your answer could be improved with additional supporting information. Please edit to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers in the help center.

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.