4

I've been trying to install PyQt6 on my Ubuntu machine, running Python 3.8.10.

Following the instructions on the site, I have tried the following:

enter image description here

I have also tried with pip3 and I have tried installing in PyCharm:

enter image description here

Any suggestions on how i can satisfy the distribution they're looking for? I'm not really sure what is meant by these error messages.

Thanks!

Anson Savage
  • 283
  • 3
  • 5
  • 12

4 Answers4

12

Try to update Your pip module and setuptools:

python3 -m pip install pip setuptools --upgrade
Domarm
  • 2,360
  • 1
  • 5
  • 17
0

had the same problem and tried running the command with sudo and worked fine.

AMM
  • 186
  • 2
  • 14
0

I also had problems and the following did not work: pip install pyqt6 python3 -m pip install pip setuptools --upgrade && pip3 sudo python3 -m pip install pip setuptools --upgrade && pip3 I kept getting an error about missing testresources I tried pip install testresources and then pip install pyqt6 and worked fine. Good Luck. This is like the blind leading the blind....

  • As it’s currently written, your answer is unclear. Please [edit] to add additional details that will help others understand how this addresses the question asked. You can find more information on how to write good answers [in the help center](/help/how-to-answer). – Community Aug 14 '22 at 14:59
  • You seem to be unaware that you can [edit] your posts, instead of adding another near identcial copy of an existing one. Please edit one and delete the other. – Yunnosch Sep 26 '22 at 00:29
-1

I also had problems and the following did not work: pip install pyqt6. Then python3 -m pip install pip setuptools --upgrade && pip3. And then sudo python3 -m pip install pip setuptools --upgrade && pip3. I kept getting an error about missing testresources. I tried pip install testresources and then pip install pyqt6 and it worked fine. I don't know how to separate the attempted commands. Carriage returns are ignored. Good Luck. This is like the blind leading the blind....

  • As it’s currently written, your answer is unclear. Please [edit] to add additional details that will help others understand how this addresses the question asked. You can find more information on how to write good answers [in the help center](/help/how-to-answer). – Community Aug 14 '22 at 15:02
  • You seem to be unaware that you can [edit] your posts, instead of adding another near identcial copy of an existing one. Please edit one and delete the other. – Yunnosch Sep 26 '22 at 00:28