[PyQt] Install PyQt5 via setuptools

Kyle Altendorf sda at fstab.net
Wed Dec 7 13:13:27 GMT 2016



On 2016-12-07 07:41, Tony Arnold wrote:
> Florian,
> 
> On Wed, 2016-12-07 at 13:13 +0100, Florian Bruhin wrote:
>> * Tony Arnold <tony.arnold at manchester.ac.uk> [2016-12-07 11:53:08
>> +0000]:
>> >
>> > I have a PyQt5 application which I package using setuptools. I've
>> > recently, PyQt5 3.5 or later can be installed using pip3, so I
>> > presumed that PyQt5 could be specified in the 'install_required'
>> > option in my setup.py file. However, this fails to install PyQt5
>> > when installing my package.
>> How does it fail?
> 
> It says:
> 
> Searching for PyQt5
> Reading https://pypi.python.org/simple/PyQt5/
> No local packages or working download links found for PyQt5
> error: Could not find suitable distribution for
> Requirement.parse('PyQt5')
> 
> 
> I'm running on Ubuntu 16.10 inside a virtualenv with Python 3.5.

What command are you running?  `python setup.py develop` won't work, you 
have to use `pip install -e .` from within the same directory as 
`setup.py`.  Then pip will search PyPI for dependencies.

Cheers
-kyle


More information about the PyQt mailing list