(Please excuse my English)
My server's OS is Ubuntu 20.04. In Ubuntu 20.04, as we know, Python 3.8 is installed by default, and many system applications run on Python 3.8.
I additionally installed Python 3.9 in my Ubuntu server. And my server worked fine for a while.
However, when I upgraded the global modules of Python(3.8 and 3.9 both), the problem occurred. Some system programs, such as Software Updater
and Software and Update
, are not working.
They are giving errors saying that cannot find some Python global modules. I tried to fix the problem by re-installing the python global modules, but could not fix.
I don't need Python 3.9 for the whole server system, only for few non-root user accounts. And the only needed global module are pip
and venv
. Other modules can be installed on project base.
So, I tried to install Python 3.9 as a non-root user. But some errors occurred, and failed.
How can I safely install Python 3.9(or above) for non-root users?
- Here, the safe installation means the installation not interfering with the system default Python 3.8.
- It doesn't matter whether Python 3.9(or above) is installed system-wide or for a specific user.