简体   繁体   English

用于Archlinux上的Matplotlib的PyQt4,PyQt5或PySide

[英]PyQt4, PyQt5 or PySide for Matplotlib on Archlinux

I cannot use matplotlib anymore (on python 3.5, archlinux, kde). 我不能再使用matplotlib了(在python 3.5,archlinux,kde上)。 After a system update with pacman I got an error that PySide is not installed. 使用pacman进行系统更新后,我收到一条未安装PySide的错误。 When I unsuccessfully tried to install it using pip3, I found out that since PySide version 1.2.4, python 3.5 is explicitly unsupported. 当我尝试使用pip3安装它失败时,我发现自从PySide版本1.2.4起,python 3.5明显不受支持。 So after some research, I found out that PyQt4 or PyQt5 should work as well. 经过一些研究,我发现PyQt4或PyQt5也应该可以正常工作。 When I try to install PyQt4 or 5 with pip3, I get the following message 当我尝试使用pip3安装PyQt4或5时,我收到以下消息

$ sudo pip3 install PyQt5
Collecting PyQt5
Could not find a version that satisfies the requirement PyQt5 (from versions: )
No matching distribution found for PyQt5

qmake --version returns qmake --version返回

$ qmake --version
QMake version 3.0
Using Qt version 5.5.1 in /usr/lib

Does anybody know a solution to this problem? 有人知道这个问题的解决方案吗?

I found a solution to my problem. 我找到了解决问题的方法。 In another thread on PyQt4 installation problems here I found the useful comment by Ivo that, on Linux, one should install the PyQt packages using the native package manager. 在对PyQt4的安装问题,另一个线程在这里我找到了有用的评论伊沃的是,在Linux上,一个使用本地包管理器应安装PyQt的包。 So I installed PyQt4 and PyQt5 with pacman and now everything seems to work fine. 所以我用pacman安装了PyQt4和PyQt5,现在一切似乎都运行正常。

Note: It was necessary to reset the kernel first. 注意:必须先重置内核。 Otherwise I just got a new error message. 否则我只是收到一条新的错误消息。

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

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