How to install PyQt5 in Pycharm?

Noblood picture Noblood · Nov 19, 2013 · Viewed 55.7k times · Source

OK when I try to import the following using PyCharm

import sys

from PyQt5.QtWidgets import QtGui, QtCore

it generates this error when compiling:

ImportError: No module named 'PyQt5'

Basically I want PyQt5 in PyCharm so please provide in complete detail what should I do to install it.

Thank you in advance.

Answer

Misha Solovyev picture Misha Solovyev · May 8, 2018

Try

PyCharm -> file -> settings -> project:'your_project' - project interpreter -> + -> install PyQt5

pip install PyQt5 doesn't work for PyCharm