V
V
Vadim2021-01-02 15:20:31
linux
Vadim, 2021-01-02 15:20:31

Won't installing default python version 3.9.9 create confusion for the system?

installed pyenv in linux system for my user
curl https://pyenv.run | bash

and added python 3.9.9, cat installed as global

pyenv install -v 3.9.9
pyenv global 3.9.9


now the command
python -V
gives python 3.9.9

wouldn't there be python confusion for the linux system itself with this approach? It is convenient to use 3.9.9 by default for your projects

Or it is better to return system: pyenv global system

Answer the question

In order to leave comments, you need to log in

3 answer(s)
V
Vadim, 2021-01-02
@Viji

Apparently, running the pyenv global 3.9.9 command is safe enough, because it does not affect the system python, it only sets the path to the default python interpreter for the given user.

D
Dr. Bacon, 2021-01-02
@bacon

1. never change the system python, otherwise you will break everything
2. the versions of the first two points normally live in the system, 3.6.X, 3.7.X, etc.
3. development rule - each new project in your venv, do whatever you want there, but most importantly, do not touch the system python and its packages.
Threat, well, the system python and its libraries are installed through apt and other system installation managers, and development through pip, well, or pipenv, poetry and the like.

A
AVKor, 2021-01-02
@AVKor

Won't installing default python version 3.9.9 create confusion for the system?

Why do it at all? It makes no sense.
Each project must be done in its own virtual environment. I recommend the pyenv + pipenv bundle.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question