Install python3 to a Virtual server

Hi, sorry, toal newbie question:
How can I on a new virtual server install/enable python3 - without having it on all virtual servers/messing something else up on VM?

Thx a million

Just don’t do anything weird. Install the python3 packages from your OS repo. It’ll be fine.

1 Like

thx Joe!
But that will then be for whole server, correct?

Yes, but it doesn’t matter? python3 and python (or python2) are separate packages and binaries and can be installed together. They don’t conflict. If you want to use python3 just call your script with python3 (or in the shebang).

If you want a specific Python version for a specific user, use virtualenv or pipenv. That’s what they’re for.

1 Like

thank you Joe, yes, that is my fear to mess things up… your reply helps a lot! Much appreciated

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.