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

Phil Thompson phil at riverbankcomputing.com
Wed Jan 11 14:19:36 GMT 2017


On 11 Jan 2017, at 12:58 pm, Ghislain Vaillant <ghisvail at gmail.com> wrote:
> 
> 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?

No, because that would suggest that it has a setup.py build process which it doesn't. (SIP v5 will.)

Phil


More information about the PyQt mailing list