Sample Header Ad - 728x90

Reset Python and QT5 installation for programming GUI in Python-QT

0 votes
1 answer
35 views
This questions was thrown out from there: https://stackoverflow.com/questions/79655756/reset-python-and-qt-installation-for-programming-in-python-qt Because off-topic This, when trying to use *pycrypto*: warning: GMP or MPIR library not found; Not building Crypto.PublicKey._fastmath. src/MD2.c:31:10: fatal error: Python.h: No such file or directory 31 | #include "Python.h" | ^~~~~~~~~~ compilation terminated. error: command '/usr/bin/x86_64-linux-gnu-gcc' failed with exit code 1 [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for pycrypto Failed to build pycrypto ERROR: Failed to build installable wheels for some pyproject.toml based projects (pycrypto) And also this: File "/usr/lib/python3/dist-packages/cola/hotkeys.py", line 12, in STAGE_MODIFIED = hotkey(Qt.ALT + Qt.Key_A) TypeError: unsupported operand type(s) for +: 'Modifier' and 'Key' are two of the stuff which doesn't work anymore. A lot of other libs can't be installed or updated anymore. I did apt install git-cola a long time before and everything was well. I tried to set up a qt-development environment, but installed some libs as sudo. I ignored warnings about installing as sudo :-( Tried to apt-remove qt... and reinstall Tried apt remove git-cola /purge /install again and again with different pip remove/install It seems, as I mixed up a lot of python and qt stuff. Please help me, to get git-cola and qt running again. More info: Linux .. 6.8.0-60-generic #63~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Tue Apr 22 19:00:15 UTC 2 x86_64 x86_64 x86_64 GNU/Linux Edit: I ignored this message: WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager, possibly rendering your system unusable.It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv . Use the --root-user-action option if you know what you are doing and want to suppress this warning. And I will do no more. I used venv sometimes before, and will use it more often, now.
Asked by rundekugel (321 rep)
Jun 6, 2025, 04:21 PM
Last activity: Jun 6, 2025, 04:36 PM