Pycharm, PyQt5, and Python 2.7 — No code completion

前端 未结 3 743
甜味超标
甜味超标 2020-12-15 00:56

I\'ve got:

  • Python 2.7 (Anaconda x64), which works great
  • PyQt5 (installed using pip install python-qt5)
  • PyCharm 4.04 Professional
3条回答
  •  自闭症患者
    2020-12-15 01:45

    I am using PyCharm4(community Edititon) on Windows with PyQt4, the autocomplete is fine. As PyQt4 is actually a dynamic library to be dynamic loaded by the python interpreter ( you can look into the PyQt4 folder, there is no python files there except some init.py), auto-complete depends on the source code of PyQt4 itself, so when using pycharm, it usually generally some local python cache for complete. For my machine, a typically file looks like: C:\Users\cui.PyCharm40\system\python_stubs-762174762\PyQt4\QtCore\QString.py

    You can also try install PyQt document from Pycharm. File->settings->Tools->python external document->PyQt

提交回复
热议问题