[PyQt] Unable to install PyQt 5.14
ashwin .D
winash12 at gmail.com
Mon Apr 6 04:44:18 BST 2020
Thank you for your prompt response. It turns out my default installation
was Qt4 so I upgraded my Ubuntu to Qt5.9 (qmake -v reports 5.9.5) and now
I get this error when I run
pip3 install PyQt
Collecting PyQt
Exception:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/pip/basecommand.py", line 215, in
main
status = self.run(options, args)
File "/usr/lib/python3/dist-packages/pip/commands/install.py", line 353,
in run
wb.build(autobuilding=True)
File "/usr/lib/python3/dist-packages/pip/wheel.py", line 749, in build
self.requirement_set.prepare_files(self.finder)
File "/usr/lib/python3/dist-packages/pip/req/req_set.py", line 380, in
prepare_files
ignore_dependencies=self.ignore_dependencies))
File "/usr/lib/python3/dist-packages/pip/req/req_set.py", line 554, in
_prepare_file
require_hashes
File "/usr/lib/python3/dist-packages/pip/req/req_install.py", line 278,
in populate_link
self.link = finder.find_requirement(self, upgrade)
File "/usr/lib/python3/dist-packages/pip/index.py", line 465, in
find_requirement
all_candidates = self.find_all_candidates(req.name)
File "/usr/lib/python3/dist-packages/pip/index.py", line 423, in
find_all_candidates
for page in self._get_pages(url_locations, project_name):
File "/usr/lib/python3/dist-packages/pip/index.py", line 568, in
_get_pages
page = self._get_page(location)
File "/usr/lib/python3/dist-packages/pip/index.py", line 683, in _get_page
return HTMLPage.get_page(link, session=self.session)
File "/usr/lib/python3/dist-packages/pip/index.py", line 795, in get_page
resp.raise_for_status()
File
"/usr/share/python-wheels/requests-2.18.4-py2.py3-none-any.whl/requests/models.py",
line 935, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 404 Client Error: Not Found for url:
https://pypi.org/simple/pyqt/
When I run your command on my box I get - /usr/bin/python3 No module named
install.
On Mon, Apr 6, 2020 at 8:52 AM Damon Lynch <damonlynch at gmail.com> wrote:
> On Sun, Apr 5, 2020 at 10:04 PM ashwin .D <winash12 at gmail.com> wrote:
> >
> > Hello,
> > I am trying to install PyQt 5.14 and I am getting the
> following errors when I type this command on Ubuntu 18.04 LTS
> >
> > pip3 install PyQt
> >
> > Collecting PyQt5
> > Using cached
> https://files.pythonhosted.org/packages/4d/81/b9a66a28fb9a7bbeb60e266f06ebc4703e7e42b99e3609bf1b58ddd232b9/PyQt5-5.14.2.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-io2s31yp/PyQt5/setup.py'
> >
> > ----------------------------------------
> > Command "python setup.py egg_info" failed with error code 1 in
> /tmp/pip-build-io2s31yp/PyQt5/
>
> Do this:
>
> python3 -m install --user -U pip setuptools
>
> You might want to upgrade wheel while you're at it too, but I guess
> that's up to you.
>
> Then install PyQt5.
>
>
> --
> http://www.damonlynch.net
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20200406/e0f2d175/attachment.htm>
More information about the PyQt
mailing list