Best Solution I found
If you try to download pyqt5-tools
it’s not going to work with python v.3.10.x
. But if you want to download it correctly you should try this solution because it works for me.
- Install
PyQt5
:
pip install pyqt5
- Install
PyQt5Designer
:
pip install PyQt5Designer
Then you should Find the Qt Designer
, under the name designer.exe
:
C:...PythonPython310Libsite-packagesQtDesignerdesigner.exe
Note that the installation path of python may be different for you, to find yours, try this on your Python interpreter, type the following commands:
>>> import os, sys
>>> os.path.dirname(sys.executable)
'C:\path-to-your-python-installation\Python\Python310'
Then you should find the QtDesigner
after that path in for of:
C:...Python310Libsite-packagesQtDesignerdesigner.exe
Just click on it, and pin it to your start or taskbar.
Or Simply if you want to download it directly as .exe
, But I’m not sure if this can miss some pyqt5-tools:
Qt Designer Download
I’m trying to install pyqt5-tools (just for the designer) on a fresh python virtual environment on Window.
But I get the following error message from pip:
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... error
error: subprocess-exited-with-error
× Preparing metadata (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [29 lines of output]
Traceback (most recent call last):
File "c:UsersAntoniotestenvlibsite-packagespip_vendorpep517in_process_in_process.py", line 156, in prepare_metadata_for_build_wheel
hook = backend.prepare_metadata_for_build_wheel
AttributeError: module 'sipbuild.api' has no attribute 'prepare_metadata_for_build_wheel'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "c:UsersAntoniotestenvlibsite-packagespip_vendorpep517in_process_in_process.py", line 363, in <module>
main()
File "c:UsersAntoniotestenvlibsite-packagespip_vendorpep517in_process_in_process.py", line 345, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
File "c:UsersAntoniotestenvlibsite-packagespip_vendorpep517in_process_in_process.py", line 160, in prepare_metadata_for_build_wheel
whl_basename = backend.build_wheel(metadata_directory, config_settings)
File "C:UsersAntonioAppDataLocalTemppip-build-env-i8iu0fc8overlayLibsite-packagessipbuildapi.py", line 46, in build_wheel
project = AbstractProject.bootstrap('wheel',
File "C:UsersAntonioAppDataLocalTemppip-build-env-i8iu0fc8overlayLibsite-packagessipbuildabstract_project.py", line 87, in bootstrap
project.setup(pyproject, tool, tool_description)
File "C:UsersAntonioAppDataLocalTemppip-build-env-i8iu0fc8overlayLibsite-packagessipbuildproject.py", line 584, in setup
self.apply_user_defaults(tool)
File "C:UsersAntonioAppDataLocalTemppip-install-hyvt3ynypyqt5_eb0ef21f6fd44feab5540f177959c190project.py", line 63, in apply_user_defaults
super().apply_user_defaults(tool)
File "C:UsersAntonioAppDataLocalTemppip-build-env-i8iu0fc8overlayLibsite-packagespyqtbuildproject.py", line 70, in apply_user_defaults
super().apply_user_defaults(tool)
File "C:UsersAntonioAppDataLocalTemppip-build-env-i8iu0fc8overlayLibsite-packagessipbuildproject.py", line 236, in apply_user_defaults
self.builder.apply_user_defaults(tool)
File "C:UsersAntonioAppDataLocalTemppip-build-env-i8iu0fc8overlayLibsite-packagespyqtbuildbuilder.py", line 67, in apply_user_defaults
raise PyProjectOptionException('qmake',
sipbuild.pyproject.PyProjectOptionException
[end of output]
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: This is an issue with the package mentioned above, not pip.
hint: See above for details.
Do you have an idea on how to solve this issue?
Best Solution I found
If you try to download pyqt5-tools
it’s not going to work with python v.3.10.x
. But if you want to download it correctly you should try this solution because it works for me.
- Install
PyQt5
:
pip install pyqt5
- Install
PyQt5Designer
:
pip install PyQt5Designer
Then you should Find the Qt Designer
, under the name designer.exe
:
C:...PythonPython310Libsite-packagesQtDesignerdesigner.exe
Note that the installation path of python may be different for you, to find yours, try this on your Python interpreter, type the following commands:
>>> import os, sys
>>> os.path.dirname(sys.executable)
'C:\path-to-your-python-installation\Python\Python310'
Then you should find the QtDesigner
after that path in for of:
C:...Python310Libsite-packagesQtDesignerdesigner.exe
Just click on it, and pin it to your start or taskbar.
Or Simply if you want to download it directly as .exe
, But I’m not sure if this can miss some pyqt5-tools:
Qt Designer Download
Не получается установить, не понимаю, что хочет.
Текст — https://pastebin.com/sJxV0xcN тут не влазит сколько оно выдало…
-
Вопрос заданболее года назад
-
2174 просмотра
2
комментария
Пригласить эксперта
Ответы на вопрос 2
pip uninstall pyqt5-tools
pip install —upgrade —user pyqtwebengine==5.12
pip install —upgrade —user pyqt5==5.12
pip install pyside6
Комментировать
Похожие вопросы
-
Показать ещё
Загружается…
25 июн. 2023, в 11:42
600 руб./за проект
25 июн. 2023, в 10:30
6000 руб./за проект
25 июн. 2023, в 10:26
15000 руб./за проект
Минуточку внимания
FaceHoof, первое, что Вам необходимо сделать:
— проверить правильность установки, это можно сделать с использованием следующих инструкций в IDLE (не терминале (не в интерактивном режиме) и не PyCharm)
>>> from PyQt5 import QtCore
>>>QtCore.PYQT_VERSION_STR
Здесь должен быть отражен номер версии пакета PyQt5
>>>QtCore.QT_VERSION_STR
Здесь версия QT
Добавлено через 4 минуты
Сообщение от FaceHoof
Could not find a version that satisfies the requirement pyqt5-tools (from versions: )
No matching distribution found for pyqt5-tools
Скорее всего данное сообщение появляется из-за различий версий PyQt5, pyqt5-tools и Qt, точно не знаю.
Проще удалить PyQt5 командой:
pip3 uninstall pyqt5
И установить заново:
pip3 install pyqt5
Добавлено через 4 минуты
Сообщение от FaceHoof
pip3 install pyqt5-tools
Далее pip3 install pyqt5-tools. Или действия аналогичные выше сказанному в случае возникновения проблем. Возможно потребуется обновить сам пакет pip командой python -m pip install —upgrade pip (или pip3)
Данная библиотека необходима так как в составе последних версий PyQt отсутствует «Дизайнерский пакет» QtDesigner.
Добавлено через 5 минут
Ну и экспериментируйте, читайте в Python это позволительно и удачи. Если что-то не получается или у Вас unix или mac, возможно, потребуются другие действия. Так же многое зависит от 32 или 64 битной версии python.