海外主机测评

您现在的位置是:首页 > 国外服务器 > 正文

国外服务器

CentOS安装PyQT5.6

cds8202023-02-05国外服务器184
本站教程收集整理的这篇文章主要介绍了CentOS安装PyQT5.6,本站教程本站觉得挺不错的,现在分享给大家,也给大家做个参考。

本站教程收集整理的这篇文章主要介绍了CentOS安装PyQT5.6,本站教程本站觉得挺不错的,现在分享给大家,也给大家做个参考。

CentOS安装PyQT5.6

一、安装CentOS7

  1. 安装完成后进行更新
    sudo yum update -y
  2. 增加epel 源
    yum install epel-release -y

二、 安装qt5

  1. 安装qt5.6
    yum install qt5-qtquickcontrols qt5-qtdeclarative-devel -y

三、 安装PyQT5

  1. 安装编译环境
    yum install gcc gcc-c++ python-devel -y
  2. 下载sip-4.18
    wget http://nchc.dl.sourceforge.net/project/pyqt/sip/sip-4.18/sip-4.18.tar.gz
  3. 装sip-4.18
   sudo tar xzvf sip-4.18.tar.gz    sudo cd sip    sudo python configure.py    sudo @H_628_46@make    sudo @H_628_46@make install 
  1. 下载pyqt5.6
    wget http://nchc.dl.sourceforge.net/project/pyqt/PyQt5/PyQt-5.6/PyQt5_gpl-5.6.tar.gz
  2. 安装qt5-qtbase-devel
    yum install qt5-qtbase-devel -y
  3. 编译并安装 pyqt
   sudo tar xzvf PyQt5_gpl-5.6.tar.gz
   sudo cd PyQt5_gpl-5.6    sudo python configure.py --qmake=/usr/bin/qmake-qt5    sudo make all    sudo make install

tip:
  1.步骤sudo python configure.py --qmake=/usr/bin/qmake-qt5会出错:
    Error: This versiON of PyQt5 and the commercial version of Qt have incompatible licenses.
 ? ? 解决办法:
    vi configure.py #大约在2681行,可根据关键字搜索
? ? ? ? ? ? ? 修改红色标记处: if introspecTing and target_config.qt_licensee not in ‘@R_197_2747@‘ and ltype == ‘GPL‘:

from:https://stackoverflow.com/questions/31825633/pyqt5-5-and-qt5-licence-issue

@H_616_119@

本站总结

以上是本站教程为你收集整理的CentOS安装PyQT5.6全部内容,希望文章能够帮你解决CentOS安装PyQT5.6所遇到的程序开发问题。

如果觉得本站教程网站内容还不错,欢迎将本站教程推荐给好友。

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。

【美国高防三网直连、香港便宜VPS云服务器点击直达】


《CentOS安装PyQT5.6》来自互联网同行内容,若有侵权,请联系我们删除!

发表评论

评论列表

  • 这篇文章还没有收到评论,赶紧来抢沙发吧~