python3.7 安裝PyQt5

安裝命令至關簡單:python

pip install PyQt5

安裝過程當中,會提示sip包不知足條件:ui

能夠根據本身的python版本下載sip的wheel文件本身安裝,安裝wheel文件命令:spa

# 安裝wheel
pip install wheel
# 安裝wheel文件
pip install *.whl

安裝完成後,使用pycharm編寫代碼可能仍是沒法識別QT模塊,須要使用以下命令:code

python "D:\Program Files\JetBrains\PyCharm 2017.1.4\helpers\generator3.py" -x -d C:\Users\vincent
\.PyCharm2017.1\system\python_stubs\1828852872 PyQt5.QtGui
相關文章
相關標籤/搜索