简体   繁体   中英

PyQt4, PyQt5 or PySide for Matplotlib on Archlinux

I cannot use matplotlib anymore (on python 3.5, archlinux, kde). After a system update with pacman I got an error that PySide is not installed. 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. So after some research, I found out that PyQt4 or PyQt5 should work as well. When I try to install PyQt4 or 5 with pip3, I get the following message

$ 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 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. So I installed PyQt4 and PyQt5 with pacman and now everything seems to work fine.

Note: It was necessary to reset the kernel first. Otherwise I just got a new error message.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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