python 3.11安装pyqt5-tools报错的解决办法
note: This error originates from a subprocess, and is likely not a problem with pip.error: metadata-generation-failed× Encountered error while generating package metadata.╰─> See above for output.note
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 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 Then install again, I can install |
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> |
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>
更多推荐
所有评论(0)