Unclean system-setup due to missing requirements of python packages
Hi everyone.
So maybe this is a bug but I feel this does not meet the requirements for opening a bug, which is why I post it here.
I have to setup Ubuntu 20.04 VMs regularly, and I always use the following commands to update the python packages:
sudo apt-get update
sudo apt-get install python3-pip
python3:
import pkg_resources;
from subprocess import call;
packages = [dist.project_name for dist in pkg_resources.
call("pip3 install --upgrade " + " ".join(
This upgrades all installed python packages. However, installing PyGObject fails because some Debian packages are not installed. If I install them with
sudo apt install libcairo-dev libgirepository
prior to the python update, the error does no occur. It is unlogical that pre-existing python packages come without the underlying dependencies, and should not happen in fact. So either the set of pre-installed python packages on Ubuntu should be modified, so that PyGObject is not needed anymore, or the mentioned Debian packages should be installed beforehand (pre-installed).
I do not need advice, since I got this solved by installing the mentioned packages. But maybe this is worth improving in the next Ubuntu release.
Max
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Ubuntu Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Max Henrik Balsmeier
- Solved:
- Last query:
- Last reply: