# Time: 2024/03/16
#Author: Xiaohong
# 运行环境: OS: Windows 7 旗舰版
# Python: 3.7.9 Pyqt5
# 目的: 解决安装PYQT5 遇到Microsoft Visual C++ 14.0 is required
1.安装PYQT5时,遇到Microsoft Visual C++ 14.0 is required,如图
2.查Microsoft Visual C++已安装版本,如下,仍旧有该错误
3.在https://pypi.org/ 下载如下几个whl,手动安装
4.安装过程如下:
安装顺序为:PyQt5_sip-12.11.0-cp37-cp37m-win_amd64.whl、PyQt5-5.15.7-cp37-abi3-win_amd64.whl、PyQt5_Qt-5.15.2-py3-none-win_amd64.whl
这3个whl 安装后,再在线安装 pyqt5-tools,命令为:
pip install pyqt5-tools -i https://pypi.tuna.tsinghua.edu.cn/simple
5.注意,Python 版本是:3.7.9。其他版本没有测试过