[PyQt] pip install fail

Phil Thompson phil at riverbankcomputing.com
Mon Mar 2 22:01:15 GMT 2020


On 02/03/2020 21:43, Weatherby,Gerard wrote:
> Attempting to install the latest PyPi PyQt5 failed.
> 
> gweatherby at boxcode:/tmp$ python3 -m venv testenv
> gweatherby at boxcode:/tmp$ cd testenv
> gweatherby at boxcode:/tmp/testenv$ source bin/activate
> (testenv) gweatherby at boxcode:/tmp/testenv$ pip install PyQt5
> Collecting PyQt5
>   Using cached
> https://files.pythonhosted.org/packages/3a/fb/eb51731f2dc7c22d8e1a63ba88fb702727b324c6352183a32f27f73b8116/PyQt5-5.14.1.tar.gz
>     Complete output from command python setup.py egg_info:
>     Traceback (most recent call last):
>       File "<string>", line 1, in <module>
>       File "/usr/lib/python3.6/tokenize.py", line 452, in open
>         buffer = _builtin_open(filename, 'rb')
>     FileNotFoundError: [Errno 2] No such file or directory:
> '/tmp/pip-build-fawjd1a8/PyQt5/setup.py'
> 
>     ----------------------------------------
> Command "python setup.py egg_info" failed with error code 1 in
> /tmp/pip-build-fawjd1a8/PyQt5/
> (testenv) gweatherby at boxcode:/tmp/testenv$ python --version
> Python 3.6.8
> (testenv) gweatherby at boxcode:/tmp/testenv$ uname -a
> Linux boxcode 4.15.0-88-generic #88-Ubuntu SMP Tue Feb 11 20:11:34 UTC
> 2020 x86_64 x86_64 x86_64 GNU/Linux
> (testenv) gweatherby at boxcode:/tmp/testenv$ cat /etc/lsb-release
> DISTRIB_ID=Ubuntu
> DISTRIB_RELEASE=18.04
> DISTRIB_CODENAME=bionic
> DISTRIB_DESCRIPTION="Ubuntu 18.04.3 LTS"
> 
> Prior version seems to work fine.
> 
> 
> (testenv) gweatherby at boxcode:/tmp/testenv$ pip install PyQt5==5.14.0
> Collecting PyQt5==5.14.0
>   Using cached
> https://files.pythonhosted.org/packages/88/d0/4572492d633e311c0143ba20596cb5c090d37442d1cd431082193f3bbb3a/PyQt5-5.14.0-5.14.0-cp35.cp36.cp37.cp38-abi3-manylinux1_x86_64.whl
> Collecting PyQt5-sip<13,>=12.7 (from PyQt5==5.14.0)
>   Using cached
> https://files.pythonhosted.org/packages/a7/5b/4470b7689d683908c3113f489cae3f4f9ed621756770b33fcd603c4d426e/PyQt5_sip-12.7.1-cp36-cp36m-manylinux1_x86_64.whl
> Installing collected packages: PyQt5-sip, PyQt5
> Successfully installed PyQt5-5.14.0 PyQt5-sip-12.7.1
> (testenv) gweatherby at boxcode:/tmp/testenv$
> 
> ?

First step is to make sure you have a recent copy of pip.

Phil


More information about the PyQt mailing list