I made virtual environment with anaconda and install the pyqt library and then wrote some code in pycharm:
import sys from PyQt5.QtWidgets import * app = QApplica