简体   繁体   English

Ubuntu 20.04 中的 Pyqt4

[英]Pyqt4 in Ubuntu 20.04

How to install Pyqt4 in ubuntu 20.04如何在 ubuntu 20.04 中安装 Pyqt4
I have already tried all the commands:我已经尝试了所有命令:

sudo apt-get install python-qt4
sudo apt-get install libqt4-dev
sudo apt-get install pyqt4-dev-tools
sudo apt-get install pyqt4.qsci-dev
sudo apt install python3-pyqt4

But it kept on saying module has no installation candidate although pyqt5 is running smoothly but code is too long for changing it to pyqt5但它一直说模块没有安装候选,虽然 pyqt5 运行顺利,但代码太长,无法将其更改为 pyqt5

I am actually stucked to install something which required PyQt4 on Ubuntu 20.04, the only solution I've got is to install Qt4 Library that way我实际上被困在 Ubuntu 20.04 上安装需要 PyQt4 的东西,我唯一的解决方案是以这种方式安装 Qt4 Library

  1. sudo add-apt-repository ppa:rock-core/qt4

  2. sudo apt update

  3. sudo apt install libqt4-declarative libqt4* libqtcore4 libqtgui4 libqtwebkit4 qt4*

Hope that will help you a little bit more希望对您有所帮助

That PPA is also missing the mysql plugin for QT4.该 PPA 还缺少用于 QT4 的 mysql 插件。 You can rebuild it from scratch (with apt source + debuild) by modifying the apt source per these instructions: Qt 5.10.0 MySQL drivers fails to compile on Fedora 27您可以通过按照以下说明修改 apt 源从头开始重建它(使用 apt 源 + debuild): Qt 5.10.0 MySQL 驱动程序无法在 Fedora 27 上编译

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM