I have:
- Python 2.7 ( Anaconda x64 ) which works great
- PyQt5 (installed using
pip install python-qt5 ) - PyCharm 4.04 Professional (recently updated from 3.4.1)
- Small
Qt Application
After a lot of hair pulling (since Riverbank does not contain the PyQt5 binary for Python 2.7, only for 3.3+), I got everything that works thanks to the pre-compiled binary packages of Marcus Otosson.
Qt is now installed and fully functional. Qt application works great!
But the application is not finished yet, and PyCharm will not complete code completion for PyQt modules. He won’t even know that there are any PyQt5 submodules (for example, Qwidgets): although they work very well, I still get a warning with the red squiggly "Unresolved Reference" .
How to fix it? I assume this is due to the inherent difficulties in creating skeletons for *.pyd . How it works? Can I manually generate code skeletons or import them from somewhere, are they generated correctly?
Uninstalling and reinstalling PyCharm did not help. It also did not reconfigure the interpreter to make the skeletal generator work again.
Please help before I go bald.
python pyqt5 pycharm pyqt code-completion
Matt merrifield
source share