pyqt5 安装失败
Failed to build PyQt5-sip ERROR: Could not build wheels for PyQt5-sip, which is required to install pyproject.toml-based projects
1.安装 Microsoft Visual C++ 构建工具
Microsoft C++ 生成工具 - Visual Studio
2.安装 Windows 10 SDK
- 运行 Visual Studio Installer
- 勾选:
- "C++ 构建工具"
- "Windows 10 SDK" 或 "Windows 11 SDK"
- "MSVC v143 构建工具"(最新版)3安装 Python 开发依赖
3.安装python依赖
-
pip install wheel setuptools --upgrade