Python Forum
how do I install pyqt 5?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
how do I install pyqt 5?
#1
I'm currently on version 3.6
I tried the pip3 install PyQt5
It gives the error:
IndentationError: unexpected indent
Reply
#2
You need do use pip from command line,not interactive shell as you do now.

Also do basic test of python and pip commands.
So if i do pip install PyQt5 it will only install to 3.7,see that pip for me point to 3.7 in Windows and Linux.
Windows:
C:\
λ python -V
Python 3.7.3

# Python executable that run code 
C:\
λ python -c "import sys; print(sys.executable)"
C:\python37\python.exe

# Version and Placement of pip
C:\
λ pip -V
pip 19.1.1 from c:\python37\lib\site-packages\pip (python 3.7)
Linux:
tom@tom-VirtualBox:~$ python -V
Python 3.7.3

# Python executable that run code 
tom@tom-VirtualBox:~$ python -c "import sys; print(sys.executable)"
/home/tom/.pyenv/versions/3.7.3/bin/python

# Version and Placement of pip
tom@tom-VirtualBox:~$ pip -V
pip 19.0.3 from /home/tom/.pyenv/versions/3.7.3/lib/python3.7/site-packages/pip (python 3.7)
tom@tom-VirtualBox:~$ pip3 -V
pip 19.0.3 from /home/tom/.pyenv/versions/3.7.3/lib/python3.7/site-packages/pip (python 3.7)
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  [PyQt] install PyQt jaleel2007 2 2,110 Jan-14-2020, 03:31 PM
Last Post: Denni
  [PyQt] I build and install PyQT for python2 but it not recognize in python nadavvin 7 8,050 Mar-29-2019, 03:24 PM
Last Post: Axel_Erfurt

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020