G
G
gregorypetrov2019-05-19 14:24:47
Python
gregorypetrov, 2019-05-19 14:24:47

Is it possible to install Python 3 on Debian without uninstalling Python 2 and use both as needed?

There is a web server on Debian. Python 2 is installed, which runs some important scripts.
Can I also install Python 3 on the server so that some of the scripts run as before (by default) from under Python 2, and some from under Python 3?
If yes, how to do it in general terms?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
S
Sergey Gornostaev, 2019-05-19
@gregorypetrov

sudo apt-get install python3

V
Vladimir, 2019-05-19
@vintello

never put two pythons together. because they are already installed in the system :)
python3 --version

T
TheRonCronix, 2019-05-19
@TheRonCronix

You can also look at conda. It is a package and environment management tool.

D
Denis, 2019-05-20
@Norkotik

You can read about venv, most likely this is exactly what you need

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question