Python 3.10/3.11 安装 PYQT5-TOOLS失败解决办法

报错原因:PTQT5-TOOLS未适配3.10以上版本

解决方法:安装完pyqt5后,直接安装pyqtdesigner即可

报错原文可参考

PS C:\Users\redmibook-001\Desktop\Python\Shell_Temp_Fitting> pip install pyqt5-tools
Looking in indexes: https://mirrors.aliyun.com/pypi/simple/
Collecting pyqt5-tools
Using cached https://mirrors.aliyun.com/pypi/packages/b7/70/a25aab849a5e38ae78716acde1f917a14d9d819c8600bbb8cf536781f7c5/pyqt5_tools-5.15.4.3.2-py3-none-any.whl Using cached https://mirrors.aliyun.com/pypi/packages/b7/70/a25aab849a5e38ae78716acde1f917a14d9d819c8600bbb8cf536781f7c5/pyqt5_tools-5.15.4.3.2-py3-none-any.whl (29 kB)
Collecting click
Downloading https://mirrors.aliyun.com/pypi/packages/c2/f1/df59e28c642d583f7dacffb1e0965d0e00b218e0186d7858ac5233dce840/click-8.1.3-py3-none-any.whl Downloading https://mirrors.aliyun.com/pypi/packages/c2/f1/df59e28c642d583f7dacffb1e0965d0e00b218e0186d7858ac5233dce840/click-8.1.3-py3-none-any.whl (96 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 96.6/96.6 kB 276.8 kB/s eta 0:00:00
Collecting pyqt5==5.15.4
Using cached https://mirrors.aliyun.com/pypi/packages/8e/a4/d5e4bf99dd50134c88b95e926d7b81aad2473b47fde5e3e4eac2c69a8942/PyQt5-5.15.4.tar.gz (3.3 MB)
Installing build dependencies ... error
error: subprocess-exited-with-error

× pip subprocess to install build dependencies did not run successfully.
│ exit code: 3221225477
╰─> [0 lines of output]
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

× pip subprocess to install build dependencies did not run successfully.
│ exit code: 3221225477
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.

你可能感兴趣的:(pyqt,python)