[PyQt] Cannot install PyQt 5 on Ubuntu 14.04 (Python 3.4)

Ghislain Vaillant ghisvail at gmail.com
Wed Jan 11 12:58:14 GMT 2017


On Wed, 2017-01-11 at 12:27 +0000, Phil Thompson wrote:
> On 11 Jan 2017, at 12:10 pm, Ghislain Vaillant <ghisvail at gmail.com> wrote:
> > 
> > On Wed, 2017-01-11 at 10:04 +0000, Phil Thompson wrote:
> > > On 10 Jan 2017, at 10:52 pm, Ghislain Vaillant <ghisvail at gmail.com> wrote:
> > > > 
> > > > On Tue, 2017-01-10 at 22:08 +0000, Phil Thompson wrote:
> > > > > On 10 Jan 2017, at 6:45 pm, Ghislain Vaillant <ghisvail at gmail.com> wrote:
> > > > > > 
> > > > > > Although there are wheels available for Python 3.4 now, it is still not possible to install PyQt 5 in a venv created on Ubuntu 14.04.
> > > > > > 
> > > > > > I get the following error:
> > > > > > 
> > > > > > ```
> > > > > > pip install pyqt5
> > > > > > Collecting pyqt5
> > > > > > Using cached PyQt5-5.7.1-5.7.1-cp34.cp35.cp36-abi3-manylinux1_x86_64.whl
> > > > > > Collecting sip>=4.19 (from pyqt5)
> > > > > > Could not find a version that satisfies the requirement sip>=4.19 (from pyqt5) (from versions: )
> > > > > > No matching distribution found for sip>=4.19 (from pyqt5)
> > > > > > ```
> > > > > > 
> > > > > > Checking on PyPI, there are only wheels for sip==4.19 for Python 3.5+ and no tarball at all, hence the failure.
> > > > > 
> > > > > There are no SIP wheels for Python v3.4 because it's less confusing to support the same versions across all platforms.
> > > > > 
> > > > > Phil
> > > > 
> > > > So, how am I supposed to install the PyQt5 wheel on Python 3.4 then?
> > > 
> > > You could build and install SIP your self and then pip install PyQt5 with --no-deps.
> > 
> > But that kind of defeat the purpose of having a Python 3.4 compatible
> > wheel of PyQt5 hosted on PyPI if one still has to manually compile its
> > requirements.
> 
> The fact that the PyQt5 wheels work with Python v3.4 is a coincidence.

I see. So, if SIP has to be compiled manually then, could you make a
tarball for version 4.9 available on PyPI?

> > > > Besides, I did not understand your justification for the lack of sip
> > > > wheel for Python 3.4.
> > > 
> > > https://www.riverbankcomputing.com/pipermail/pyqt/2016-December/038476.html
> > 
> > The discussion you linked sounds specific to Windows. I am confused,
> > since my issue is related to Linux (Ubuntu 14.04 specifically).
> 
> As I said before it is less confusing (and less work for me) to have consistency across platforms.
> 
> As it says in...
> 
> https://www.riverbankcomputing.com/software/pyqt/download5
> 
> ...wheels are provided for Python v3.5 and later. The naming of the wheels is as recommended by the Distutils SIG. It is probably counter-intuitive because the relevant PEP (425) doesn't properly address the limited API (and its different versions).
> 
> Phil

Nevermind then, and sorry for the noise.


More information about the PyQt mailing list