On 15/11/2021 20:31, Uwe Brauer wrote:
Advice: don't try to upgrade python on a given Ubuntu distribution!!!!

Anover advice:
1. Avoid unsupported versions of software (Ubuntu-16.04 has only payed support for more than a year) and localize its usage if there is no other way.

* reinstall jupyter

#+begin_src
sudo dpkg --purge python3-ptyprocess
sudo -H pip3 install --upgrade --force-reinstall --no-cache-dir jupyter

2. Use venv (virtualenv for Python-2.7) to keep packages installed by pip isolated from system .deb's.

> I need still 2.7 to compile mercurial, since I rely on some extensions
> for mercurial that do not work under 3.X

Ubuntu-20.04 has (already unsupported) Python-2.7 in addition to 3.8 and 3.9.

It is better to keep primary system up to date and to use containers (LXC, docker, etc.) or fully virtualized systems for special needs.


Reply via email to