When trying to upgrade all my packages in PyCharm some of them failed. One of them was pygobject. Here are the most important details:
pip install -U pygobject==3.34.0
(Small part of) Command output:
cairo/device.c:30:10: fatal error: Python.h: No such file or directory
Make sure that you have installed Python development packages for your operating system.
But when I run "sudo apt-get install python-dev python-pip" in Terminal (on Ubuntu 18.04.3 LTS) I get this 'no problem'-message:
henrik@Henrik-L570:~$ sudo apt-get install python-dev python-pip
[sudo] password for henrik:
Reading package lists... Done
Building dependency tree
Reading state information... Done
python-dev is already the newest version (2.7.15~rc1-1).
python-pip is already the newest version (9.0.1-2.3~ubuntu1.18.04.1).
The following packages were automatically installed and are no longer required:
libclamav7 libllvm6.0 libllvm7
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Can anyone please help me. Thank you.