Can't install PyQt via pip because it ask about the license

Phil Thompson phil at riverbankcomputing.com
Wed Oct 5 08:33:23 BST 2022


On 05/10/2022 06:16, c.buhtz at posteo.jp wrote:
> I do "python3 -m pip install PyQt5 -vv" and got this.
> 
>   Querying qmake about your Qt installation...
>   This is the GPL version of PyQt 5.15.7 (licensed under the GNU
>   General Public License) for Python 3.8.10 on linux.
> 
>   Type 'L' to view the license.
>   Type 'yes' to accept the terms of the license.
>   Type 'no' to decline the terms of the license.
> 
> But because it is a "pip" it did not accept my input.
> 
> So what can I do to install PyQt5 via pip? It has to be pip, "apt-get"
> isn't an option my situation no matter that Ubuntu offers a
> "python3-pyqt5" package.
> 
> I am using pip 22.2.2 on Ubuntu 20 "focal" (pcc64le architecture).
> Setuptools is uptodate (via install -U). qmake and libqt5gui5 are
> installed from the Ubuntu repository via apt-get.

pip is trying to build from source because we don't provide wheels for 
that architecture. You can either download the sdist from PyPI and use 
sip-install or pass the necessary arguments to pip (using 
--global-option I think) including --confirm-license.

Phil


More information about the PyQt mailing list