C
C
chelmanpyt2021-10-16 22:48:47
linux
chelmanpyt, 2021-10-16 22:48:47

How to choose a different version of python on linux?

Hello.
I installed linux mint, python version 3.8.10 I

installed python 3.10, I run the python3 command and it still remains python 3.8.10.

I download pip modules, they are installed only for python 3.8.10 and not for 3.10.
What to do?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Karabanov, 2021-10-16
@chelmanpyt

Do not do that. Always use virtual environments.
Useful for switching between pyenv versions (don't forget to install the libraries ).
Well, or use Docker, then in general everything will be greatly simplified - you won’t need to install anything into the system, just run the desired version of Python from the finished image.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question