安装
pip install PyQt5
# 清华源
pip install pyqt5 -i https://pypi.tuna.tsinghua.edu.cn/simple
# 豆瓣源
pip install PyQt5 -i https://pypi.douban.com/simple
# 可选安装 PyQt5-tools (Qt Designer)
pip install PyQt5-tools
错误
- 提示
Could not fetch URL https://pypi.org/simple/pip/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host=‘pypi.org’, port=443): Max retries exceeded with url: /simple/pip/ (Caused by SSLError(SSLEOFError(8, ‘EOF occurred in violation of protocol (_ssl.c:1131)’))) - skipping
- 解决
关闭所有端口代理软件进程