python 3.11安装pyqt5-tools报错的解决办法

Python 3.11 support · Issue #108 · altendky/pyqt-tools · GitHub
https://github.com/altendky/pyqt-tools/issues/108

I update my python to 3.11 recently, now I try to install pyqt5 and pyqt5-tools. The pyqt5 installation is success, but pyqt5-tools is failed with the the similar errors when I install on python 3.10.

So I tried the same workaround I commented on #98 (comment) which I used on python 3.10.

wget https://files.pythonhosted.org/packages/5e/1b/5edc9b05c33d75f9cea3159ae3d1ff11369a0afe84eddaf5b3974b0769d1/pyqt5_plugins-5.15.4.2.2-cp39-cp39-win_amd64.whl
mv pyqt5_plugins-5.15.4.2.2-cp39-cp39-win_amd64.whl pyqt5_plugins-5.15.4.2.2-py3-none-win_amd64.whl
pip install pyqt5_plugins-5.15.4.2.2-py3-none-win_amd64.whl

But it failed with the following errors.

pip install D:\Downloads\pyqt5_plugins-5.15.4.2.2-py3-none-win_amd64.whl

I have to overwrite Requires-Dist: pyqt5 section from Requires-Dist: pyqt5 (==5.15.4) to Requires-Dist: pyqt5 in pyqt5_plugins-5.15.4.2.2-py3-none-win_amd64.whl/pyqt5_plugins-5.15.4.2.2.dist-info/METADATA.

Then install again, I can install pyqt5-tools successfully now.

pip install D:\Downloads\pyqt5_plugins-5.15.4.2.2-py3-none-win_amd64.whl
C:\Users\Liu.D.H>pip install D:\Downloads\pyqt5_plugins-5.15.4.2.2-py3-none-win_amd64.whl
Processing d:\downloads\pyqt5_plugins-5.15.4.2.2-py3-none-win_amd64.whl
Requirement already satisfied: click in c:\users\liu.d.h\appdata\local\programs\python\python311\lib\site-packages (from pyqt5-plugins==5.15.4.2.2) (8.1.3)
Requirement already satisfied: pyqt5 in c:\users\liu.d.h\appdata\local\programs\python\python311\lib\site-packages (from pyqt5-plugins==5.15.4.2.2) (5.15.7)
Collecting qt5-tools<5.15.2.2,>=5.15.2.1.2
  Downloading qt5_tools-5.15.2.1.2-py3-none-any.whl (13 kB)
Collecting qt5-applications<5.15.2.3,>=5.15.2.2.2
  Downloading qt5_applications-5.15.2.2.2-py3-none-win_amd64.whl (60.9 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 60.9/60.9 MB 8.8 MB/s eta 0:00:00
Collecting click
  Downloading click-7.1.2-py2.py3-none-any.whl (82 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 82.8/82.8 kB 1.2 MB/s eta 0:00:00
Requirement already satisfied: PyQt5-sip<13,>=12.11 in c:\users\liu.d.h\appdata\local\programs\python\python311\lib\site-packages (from pyqt5->pyqt5-plugins==5.15.4.2.2) (12.11.0)
Requirement already satisfied: PyQt5-Qt5>=5.15.0 in c:\users\liu.d.h\appdata\local\programs\python\python311\lib\site-packages (from pyqt5->pyqt5-plugins==5.15.4.2.2) (5.15.2)
Installing collected packages: qt5-applications, click, qt5-tools, pyqt5-plugins
  Attempting uninstall: click
    Found existing installation: click 8.1.3
    Uninstalling click-8.1.3:
      Successfully uninstalled click-8.1.3
Successfully installed click-7.1.2 pyqt5-plugins-5.15.4.2.2 qt5-applications-5.15.2.2.2 qt5-tools-5.15.2.1.2

C:\Users\Liu.D.H>qt5-tools
Usage: qt5-tools [OPTIONS] COMMAND [ARGS]...

Options:
  --help  Show this message and exit.

Commands:
  assistant
  canbusutil
  designer
  lconvert
  licheck64
  linguist
  lprodump
  lrelease
  lrelease-pro
  lupdate
  lupdate-pro
  moc
  pixeltool
  qcollectiongenerator
  qdbus
  qdbuscpp2xml
  qdbusviewer
  qdbusxml2cpp
  qdistancefieldgenerator
  qdoc
  qgltf
  qhelpgenerator
  qlalr
  qmake
  qml
  qmlcachegen
  qmleasing
  qmlformat
  qmlimportscanner
  qmllint
  qmlmin
  qmlplugindump
  qmlpreview
  qmlprofiler
  qmlscene
  qmltestrunner
  qmltyperegistrar
  qscxmlc
  qtattributionsscanner
  qtdiag
  qtpaths
  qtplugininfo
  qtwaylandscanner
  qvkgen
  rcc
  repc
  sdpscanner
  tracegen
  uic
  xmlpatterns
  xmlpatternsvalidator

C:\Users\Liu.D.H>qt5-tools designer

C:\Users\Liu.D.H>

pyqt5_plugins-5.15.4.2.2-py3-none-win_amd64.zip

liudonghua123 commented on Nov 28, 2022 • 

edited 

I tried the same workaround for pyqt6-tools.

wget https://files.pythonhosted.org/packages/59/42/c5d942af97f9792a32029aca02055bce00d3b454be30a432bfb38a647a95/pyqt6_plugins-6.1.0.2.2-cp39-cp39-win_amd64.whl
mv pyqt6_plugins-6.1.0.2.2-cp39-cp39-win_amd64.whl pyqt6_plugins-6.1.0.2.2-py3-none-win_amd64.whl
# overwrite `Requires-Dist: pyqt6` section from `Requires-Dist: pyqt6 (==6.1.0)` to `Requires-Dist: pyqt6` and `Requires-Dist: qt6-tools` section from `Requires-Dist: qt6-tools (<6.1.0.2,>=6.1.0.1.2)` to `Requires-Dist: qt6-tools` in pyqt6_plugins-6.1.0.2.2-py3-none-win_amd64.whl/pyqt6_plugins-6.1.0.2.2.dist-info/METADATA.
pip install pyqt6_plugins-6.1.0.2.2-py3-none-win_amd64.whl
wget https://files.pythonhosted.org/packages/d0/5a/125c5c43772d4d94554e9c31ccca9645c5e69f1c7aba4e43d5b427dc4d42/pyqt6_tools-6.1.0.3.2-py3-none-any.whl
# change `Requires-Dist: pyqt6 (==6.1.0)` to `Requires-Dist: pyqt6` and `Requires-Dist: pyqt6-plugins (<6.1.0.3,>=6.1.0.2.2)` to `Requires-Dist: pyqt6-plugins` (remove the version limit for pyqt6 and pyqt6-plugins) in pyqt6_tools-6.1.0.3.2-py3-none-any.whl/pyqt6_tools-6.1.0.3.2.dist-info/METADATA
pip install pyqt6_tools-6.1.0.3.2-py3-none-any.whl
C:\Users\Liu.D.H>python -V
Python 3.11.0

C:\Users\Liu.D.H>pip -V
pip 22.3.1 from C:\Users\Liu.D.H\AppData\Local\Programs\Python\Python311\Lib\site-packages\pip (python 3.11)

C:\Users\Liu.D.H>pip install pyqt6
Collecting pyqt6
  Downloading PyQt6-6.4.0-cp37-abi3-win_amd64.whl (6.4 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 6.4/6.4 MB 8.9 MB/s eta 0:00:00
Collecting PyQt6-sip<14,>=13.4
  Downloading PyQt6_sip-13.4.0-cp311-cp311-win_amd64.whl (72 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 72.6/72.6 kB 4.2 MB/s eta 0:00:00
Collecting PyQt6-Qt6>=6.4.0
  Downloading PyQt6_Qt6-6.4.1-py3-none-win_amd64.whl (50.5 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 50.5/50.5 MB 9.2 MB/s eta 0:00:00
Installing collected packages: PyQt6-Qt6, PyQt6-sip, pyqt6
Successfully installed PyQt6-Qt6-6.4.1 PyQt6-sip-13.4.0 pyqt6-6.4.0

C:\Users\Liu.D.H>pip install D:\Downloads\pyqt6_plugins-6.1.0.2.2-py3-none-win_amd64.whl
Processing d:\downloads\pyqt6_plugins-6.1.0.2.2-py3-none-win_amd64.whl
Requirement already satisfied: click in c:\users\liu.d.h\appdata\local\programs\python\python311\lib\site-packages (from pyqt6-plugins==6.1.0.2.2) (7.1.2)
Requirement already satisfied: pyqt6 in c:\users\liu.d.h\appdata\local\programs\python\python311\lib\site-packages (from pyqt6-plugins==6.1.0.2.2) (6.4.0)
Collecting qt6-tools
  Downloading qt6_tools-6.1.0.1.2-py3-none-any.whl (13 kB)
Requirement already satisfied: PyQt6-sip<14,>=13.4 in c:\users\liu.d.h\appdata\local\programs\python\python311\lib\site-packages (from pyqt6->pyqt6-plugins==6.1.0.2.2) (13.4.0)
Requirement already satisfied: PyQt6-Qt6>=6.4.0 in c:\users\liu.d.h\appdata\local\programs\python\python311\lib\site-packages (from pyqt6->pyqt6-plugins==6.1.0.2.2) (6.4.1)
Collecting qt6-applications<6.1.0.3,>=6.1.0.2.2
  Downloading qt6_applications-6.1.0.2.2-py3-none-win_amd64.whl (60.4 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 60.4/60.4 MB 9.1 MB/s eta 0:00:00
Installing collected packages: qt6-applications, qt6-tools, pyqt6-plugins
Successfully installed pyqt6-plugins-6.1.0.2.2 qt6-applications-6.1.0.2.2 qt6-tools-6.1.0.1.2

C:\Users\Liu.D.H>pip install pyqt6-tools
Collecting pyqt6-tools
  Downloading pyqt6_tools-6.1.0.3.2-py3-none-any.whl (29 kB)
Requirement already satisfied: click in c:\users\liu.d.h\appdata\local\programs\python\python311\lib\site-packages (from pyqt6-tools) (7.1.2)
Collecting pyqt6==6.1.0
  Downloading PyQt6-6.1.0.tar.gz (946 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 946.9/946.9 kB 2.9 MB/s eta 0:00:00
  Installing build dependencies ... canceled
ERROR: Operation cancelled by user

C:\Users\Liu.D.H>pip install D:\Downloads\pyqt6_tools-6.1.0.3.2-py3-none-any.whl
Processing d:\downloads\pyqt6_tools-6.1.0.3.2-py3-none-any.whl
Requirement already satisfied: click in c:\users\liu.d.h\appdata\local\programs\python\python311\lib\site-packages (from pyqt6-tools==6.1.0.3.2) (7.1.2)
Requirement already satisfied: pyqt6 in c:\users\liu.d.h\appdata\local\programs\python\python311\lib\site-packages (from pyqt6-tools==6.1.0.3.2) (6.4.0)
Requirement already satisfied: pyqt6-plugins in c:\users\liu.d.h\appdata\local\programs\python\python311\lib\site-packages (from pyqt6-tools==6.1.0.3.2) (6.1.0.2.2)
Requirement already satisfied: python-dotenv in c:\users\liu.d.h\appdata\local\programs\python\python311\lib\site-packages (from pyqt6-tools==6.1.0.3.2) (0.21.0)
Requirement already satisfied: PyQt6-sip<14,>=13.4 in c:\users\liu.d.h\appdata\local\programs\python\python311\lib\site-packages (from pyqt6->pyqt6-tools==6.1.0.3.2) (13.4.0)
Requirement already satisfied: PyQt6-Qt6>=6.4.0 in c:\users\liu.d.h\appdata\local\programs\python\python311\lib\site-packages (from pyqt6->pyqt6-tools==6.1.0.3.2) (6.4.1)
Requirement already satisfied: qt6-tools in c:\users\liu.d.h\appdata\local\programs\python\python311\lib\site-packages (from pyqt6-plugins->pyqt6-tools==6.1.0.3.2) (6.1.0.1.2)
Requirement already satisfied: qt6-applications<6.1.0.3,>=6.1.0.2.2 in c:\users\liu.d.h\appdata\local\programs\python\python311\lib\site-packages (from qt6-tools->pyqt6-plugins->pyqt6-tools==6.1.0.3.2) (6.1.0.2.2)
Installing collected packages: pyqt6-tools
Successfully installed pyqt6-tools-6.1.0.3.2

C:\Users\Liu.D.H>python -c "import PyQt6"

C:\Users\Liu.D.H>

pyqt6_tools-py3-none-win_amd64.zip

I tried the same workaround for pyqt6-tools.

wget https://files.pythonhosted.org/packages/59/42/c5d942af97f9792a32029aca02055bce00d3b454be30a432bfb38a647a95/pyqt6_plugins-6.1.0.2.2-cp39-cp39-win_amd64.whl
mv pyqt6_plugins-6.1.0.2.2-cp39-cp39-win_amd64.whl pyqt6_plugins-6.1.0.2.2-py3-none-win_amd64.whl
# overwrite `Requires-Dist: pyqt6` section from `Requires-Dist: pyqt6 (==6.1.0)` to `Requires-Dist: pyqt6` and `Requires-Dist: qt6-tools` section from `Requires-Dist: qt6-tools (<6.1.0.2,>=6.1.0.1.2)` to `Requires-Dist: qt6-tools` in pyqt6_plugins-6.1.0.2.2-py3-none-win_amd64.whl/pyqt6_plugins-6.1.0.2.2.dist-info/METADATA.
pip install pyqt6_plugins-6.1.0.2.2-py3-none-win_amd64.whl
wget https://files.pythonhosted.org/packages/d0/5a/125c5c43772d4d94554e9c31ccca9645c5e69f1c7aba4e43d5b427dc4d42/pyqt6_tools-6.1.0.3.2-py3-none-any.whl
# change `Requires-Dist: pyqt6 (==6.1.0)` to `Requires-Dist: pyqt6` and `Requires-Dist: pyqt6-plugins (<6.1.0.3,>=6.1.0.2.2)` to `Requires-Dist: pyqt6-plugins` (remove the version limit for pyqt6 and pyqt6-plugins) in pyqt6_tools-6.1.0.3.2-py3-none-any.whl/pyqt6_tools-6.1.0.3.2.dist-info/METADATA
pip install pyqt6_tools-6.1.0.3.2-py3-none-any.whl
C:\Users\Liu.D.H>python -V
Python 3.11.0

C:\Users\Liu.D.H>pip -V
pip 22.3.1 from C:\Users\Liu.D.H\AppData\Local\Programs\Python\Python311\Lib\site-packages\pip (python 3.11)

C:\Users\Liu.D.H>pip install pyqt6
Collecting pyqt6
  Downloading PyQt6-6.4.0-cp37-abi3-win_amd64.whl (6.4 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 6.4/6.4 MB 8.9 MB/s eta 0:00:00
Collecting PyQt6-sip<14,>=13.4
  Downloading PyQt6_sip-13.4.0-cp311-cp311-win_amd64.whl (72 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 72.6/72.6 kB 4.2 MB/s eta 0:00:00
Collecting PyQt6-Qt6>=6.4.0
  Downloading PyQt6_Qt6-6.4.1-py3-none-win_amd64.whl (50.5 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 50.5/50.5 MB 9.2 MB/s eta 0:00:00
Installing collected packages: PyQt6-Qt6, PyQt6-sip, pyqt6
Successfully installed PyQt6-Qt6-6.4.1 PyQt6-sip-13.4.0 pyqt6-6.4.0

C:\Users\Liu.D.H>pip install D:\Downloads\pyqt6_plugins-6.1.0.2.2-py3-none-win_amd64.whl
Processing d:\downloads\pyqt6_plugins-6.1.0.2.2-py3-none-win_amd64.whl
Requirement already satisfied: click in c:\users\liu.d.h\appdata\local\programs\python\python311\lib\site-packages (from pyqt6-plugins==6.1.0.2.2) (7.1.2)
Requirement already satisfied: pyqt6 in c:\users\liu.d.h\appdata\local\programs\python\python311\lib\site-packages (from pyqt6-plugins==6.1.0.2.2) (6.4.0)
Collecting qt6-tools
  Downloading qt6_tools-6.1.0.1.2-py3-none-any.whl (13 kB)
Requirement already satisfied: PyQt6-sip<14,>=13.4 in c:\users\liu.d.h\appdata\local\programs\python\python311\lib\site-packages (from pyqt6->pyqt6-plugins==6.1.0.2.2) (13.4.0)
Requirement already satisfied: PyQt6-Qt6>=6.4.0 in c:\users\liu.d.h\appdata\local\programs\python\python311\lib\site-packages (from pyqt6->pyqt6-plugins==6.1.0.2.2) (6.4.1)
Collecting qt6-applications<6.1.0.3,>=6.1.0.2.2
  Downloading qt6_applications-6.1.0.2.2-py3-none-win_amd64.whl (60.4 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 60.4/60.4 MB 9.1 MB/s eta 0:00:00
Installing collected packages: qt6-applications, qt6-tools, pyqt6-plugins
Successfully installed pyqt6-plugins-6.1.0.2.2 qt6-applications-6.1.0.2.2 qt6-tools-6.1.0.1.2

C:\Users\Liu.D.H>pip install pyqt6-tools
Collecting pyqt6-tools
  Downloading pyqt6_tools-6.1.0.3.2-py3-none-any.whl (29 kB)
Requirement already satisfied: click in c:\users\liu.d.h\appdata\local\programs\python\python311\lib\site-packages (from pyqt6-tools) (7.1.2)
Collecting pyqt6==6.1.0
  Downloading PyQt6-6.1.0.tar.gz (946 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 946.9/946.9 kB 2.9 MB/s eta 0:00:00
  Installing build dependencies ... canceled
ERROR: Operation cancelled by user

C:\Users\Liu.D.H>pip install D:\Downloads\pyqt6_tools-6.1.0.3.2-py3-none-any.whl
Processing d:\downloads\pyqt6_tools-6.1.0.3.2-py3-none-any.whl
Requirement already satisfied: click in c:\users\liu.d.h\appdata\local\programs\python\python311\lib\site-packages (from pyqt6-tools==6.1.0.3.2) (7.1.2)
Requirement already satisfied: pyqt6 in c:\users\liu.d.h\appdata\local\programs\python\python311\lib\site-packages (from pyqt6-tools==6.1.0.3.2) (6.4.0)
Requirement already satisfied: pyqt6-plugins in c:\users\liu.d.h\appdata\local\programs\python\python311\lib\site-packages (from pyqt6-tools==6.1.0.3.2) (6.1.0.2.2)
Requirement already satisfied: python-dotenv in c:\users\liu.d.h\appdata\local\programs\python\python311\lib\site-packages (from pyqt6-tools==6.1.0.3.2) (0.21.0)
Requirement already satisfied: PyQt6-sip<14,>=13.4 in c:\users\liu.d.h\appdata\local\programs\python\python311\lib\site-packages (from pyqt6->pyqt6-tools==6.1.0.3.2) (13.4.0)
Requirement already satisfied: PyQt6-Qt6>=6.4.0 in c:\users\liu.d.h\appdata\local\programs\python\python311\lib\site-packages (from pyqt6->pyqt6-tools==6.1.0.3.2) (6.4.1)
Requirement already satisfied: qt6-tools in c:\users\liu.d.h\appdata\local\programs\python\python311\lib\site-packages (from pyqt6-plugins->pyqt6-tools==6.1.0.3.2) (6.1.0.1.2)
Requirement already satisfied: qt6-applications<6.1.0.3,>=6.1.0.2.2 in c:\users\liu.d.h\appdata\local\programs\python\python311\lib\site-packages (from qt6-tools->pyqt6-plugins->pyqt6-tools==6.1.0.3.2) (6.1.0.2.2)
Installing collected packages: pyqt6-tools
Successfully installed pyqt6-tools-6.1.0.3.2

C:\Users\Liu.D.H>python -c "import PyQt6"

C:\Users\Liu.D.H>

pyqt6_tools-py3-none-win_amd64.zip

  • 1
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值