CentOS7.4安装PyQt5.6
生活随笔
收集整理的這篇文章主要介紹了
CentOS7.4安装PyQt5.6
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
安裝openssl
sudo yum install openssl -y sudo yum install openssl-devel -y安裝Python3.5
tar -zxvf Python-3.5.4.tgz cd Python-3.5.4 ./configure -prefix=/usr/local/python/python3 make sudo make install修改yum配置文件
sudo vi /usr/bin/yum #(修改首行:#!/usr/bin/python 改成 #!/usr/bin/python2.7) sudo vi /usr/libexec/urlgrabber-ext-down (修改首行:#!/usr/bin/python 改成 #!/usr/bin/python2.7)安裝pip
tar -zxvf setuptools-19.6.tar.gz cd setuptools-19.6 python3 setup.py build sudo python3 setup.py installtar -xvzf pip-20.0.2.tar.gz cd pip-20.0.2 python3 setup.py build sudo python3 setup.py install創建軟連接
ln -s /usr/local/python/python3/bin/python3 /usr/bin/python3 ln -s /usr/local/python/python3/bin/pip3 /usr/bin/pip3==================================
安裝PyQt5.6:方法1
sip is need, add the following (auto):
sip-5.2.0-cp35-cp35m-manylinux2014_x86_64.whl (722 kB)
toml-0.10.0-py2.py3-none-any.whl (25 kB)
packaging-20.3-py2.py3-none-any.whl (37 kB)
six-1.14.0-py2.py3-none-any.whl (10 kB)
pyparsing-2.4.7-py2.py3-none-any.whl (67 kB)
PyQt5_sip-12.7.2-cp35-cp35m-manylinux1_x86_64.whl
==================================
安裝PyQt5.6:方法2
SIP安裝
安裝qt5.6.1
qt-opensource-linux-x64-5.6.1.runPyQt5 安裝
$ wget https://jaist.dl.sourceforge.net/project/pyqt/PyQt5/PyQt-5.6/PyQt5_gpl-5.6.tar.gz $ tar xvf PyQt5_gpl-5.6.tar.gz $ cd PyQt5_gpl-5.6 $ sudo python3 configure.py --sip /usr/local/python/python3/bin/sip -q /home/mini/Qt5.6.1/5.6/gcc_64/bin/qmake $ sudo make $ sudo make install & make clean驗證安裝效果
$ python Python 2.7.10 (default, Dec 7 2015, 15:42:49) [GCC 4.8.3 20140911 (Red Hat 4.8.3-9)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import PyQt5 >>> exit()總結
以上是生活随笔為你收集整理的CentOS7.4安装PyQt5.6的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 南苏丹有什么生物
- 下一篇: Git清除本地账号密码/保存账号密码