Python error ERROR Could not find a version that satisfies the requirement PyQt4 from versions none

+1 vote

I am trying to install PyQt4 on my python 2.7. But I end up with the following error:

ERROR: Could not find a version that satisfies the requirement PyQt4 (from versions: none)
ERROR: No matching distribution found for PyQt4
Jul 22, 2019 in Python by Rhea
120,122 views

Try installing from the terminal with the following command:

pip install pyqt4

I get this when I try installing using pip:

DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop
support for Python 2.7.
Collecting pyqt4
  ERROR: Could not find a version that satisfies the requirement pyqt4 (from versions: none)
ERROR: No matching distribution found for pyqt4

Try this:

pip install python-qt
Yes this works thanks
Sir how to   solve this error  "ERROR: Could not find a version that satisfies the requirement python (from versions: none)" "Error:no matching distribution found for python" and i have python 3.8.1
Which PyQt version are you trying to install?
It's not working even i installed pyqt5 but getting same error.
Are you trying to install it using pip?

5 answers to this question.

+1 vote
Best answer

You cannot install PyQt directly from pip. Download the file according to your version.

And run install the .whl file with pip

Hope it helps!!

If you need to know more about Python, It's recommended to join Python course today.

Thanks!

answered Jul 22, 2019 by Bob

selected Jul 22, 2019 by Kalgi
Thanks Bob, that worked!
Sir how to solve this error
ERROR: Could not find a version that satisfies the requirement Python (from versions: none)"Error:no matching  distrivution found for python. And i have python 3,8,1
For Python version 3.8, you need PyQt5. Try installing PyQt5 instead of PyQt4.
+1 vote

QT does not support Qt4 anymore. But you can install PyQt5 instead:

pip install PyQt5
answered Jul 22, 2019 by Hitesh
+2 votes
I downloaded pyqt5 then installed it via pip
answered Jan 30, 2020 by Salman
Thanks, @Salman for your contribution.

Please register at Edureka Community and earn credits for every contribution. A contribution could be asking a question, answering, commenting or even upvoting/downvoting an answer or question.

These credits can be used to get a discount on the course. Also, you could become the admin at Edureka Community with certain points.

Cheers!
Please, answer the question, i can't solve this problem
I downloaded pyqt5 then installed it via pip
What version of pip are you using?

Also, you can try installing using apt

apt install python3-pyqt5
0 votes

You need to install python-qt using pip like this:

pip install python-qt

answered Dec 11, 2020 by Gitika
• 65,770 points
0 votes

Every time you need to install pip pkgs, run the following commands beforehand from your cmd (you don't need to be Admin):

set http_proxy=http://your_corp_username:password@<your_corp_proxy_host>:<port>
set https_proxy=https://your_corp_username:password@<your_corp_proxy_host>:<port>

Then run your usual pip commands.

If pip throws some SSL trust/resolution error. You can also do the following to trust pip by your network:

pip --trusted-host=pypi.python.org --trusted-host=pypi.org --trusted-host=files.pythonhosted.org install <some_package>

Use the following for installing packages under current user only (this doesn't require Admin privileges)

pip --trusted-host=pypi.python.org --trusted-host=pypi.org --trusted-host=files.pythonhosted.org insta
answered Dec 11, 2020 by Roshni
• 10,480 points

Related Questions In Python

0 votes
1 answer
0 votes
0 answers

how to fix the ERROR: Could not find a version that satisfies the requirement engine

when I install engine or anyother module ...READ MORE

Jan 3, 2021 in Python by Muhammad Ali
• 120 points
2,021 views
0 votes
2 answers
+1 vote
2 answers

how can i count the items in a list?

Syntax :            list. count(value) Code: colors = ['red', 'green', ...READ MORE

answered Jul 7, 2019 in Python by Neha
• 330 points

edited Jul 8, 2019 by Kalgi 4,443 views
0 votes
1 answer
+5 votes
6 answers

Lowercase in Python

You can simply the built-in function in ...READ MORE

answered Apr 11, 2018 in Python by hemant
• 5,790 points
4,079 views
0 votes
1 answer
0 votes
3 answers

How to get the return value from a thread using python?

FWIW, the multiprocessing module has a nice interface for ...READ MORE

answered Dec 15, 2020 in Python by Roshni
• 10,480 points
107,809 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP