Hi im trying to install PyQt6 (with pip) in a venv with Python 3.9.4 x86 but im keep getting this error message
Collecting pyqt6
Using cached PyQt6-6.2.3.tar.gz (1.0 MB)
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 "D:\Proyectos\software_estudio_2.0\venv_x32\lib\site-packages\pip\_vendor\pep517\in_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 "D:\Proyectos\software_estudio_2.0\venv_x32\lib\site-packages\pip\_vendor\pep517\in_process\_in_process.py", line 363, in <module>
main()
File "D:\Proyectos\software_estudio_2.0\venv_x32\lib\site-packages\pip\_vendor\pep517\in_process\_in_process.py", line 345, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
File "D:\Proyectos\software_estudio_2.0\venv_x32\lib\site-packages\pip\_vendor\pep517\in_process\_in_process.py", line 160, in prepare_metadata_for_build_wheel
whl_basename = backend.build_wheel(metadata_directory, config_settings)
File "C:\Users\rober\AppData\Local\Temp\pip-build-env-skgk91v2\overlay\Lib\site-packages\sipbuild\api.py", line 51, in build_wheel
project = AbstractProject.bootstrap('pep517')
File "C:\Users\rober\AppData\Local\Temp\pip-build-env-skgk91v2\overlay\Lib\site-packages\sipbuild\abstract_project.py", line 83, in bootstrap
project.setup(pyproject, tool, tool_description)
File "C:\Users\rober\AppData\Local\Temp\pip-build-env-skgk91v2\overlay\Lib\site-packages\sipbuild\project.py", line 594, in setup
self.apply_user_defaults(tool)
File "project.py", line 67, in apply_user_defaults
super().apply_user_defaults(tool)
File "C:\Users\rober\AppData\Local\Temp\pip-build-env-skgk91v2\overlay\Lib\site-packages\pyqtbuild\project.py", line 70, in apply_user_defaults
super().apply_user_defaults(tool)
File "C:\Users\rober\AppData\Local\Temp\pip-build-env-skgk91v2\overlay\Lib\site-packages\sipbuild\project.py", line 241, in apply_user_defaults
self.builder.apply_user_defaults(tool)
File "C:\Users\rober\AppData\Local\Temp\pip-build-env-skgk91v2\overlay\Lib\site-packages\pyqtbuild\builder.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.
I have no problem installing it in the same venv with a 3.9.4 x64 version. Is possible that PyQt6 is not compatible with x86 pyhton's versions? Is there any solution?
I had this problem when I wanted to install PyQt5-tools.I used Python 3.10.2 and then I removed it and install Python 3.9.10 ( without upgrading pip from 21.2.4 to 22.0.3) and problem solved.
Related
I am doing
pip install gmx
and getting the following error
Collecting gmx
Using cached gmx-0.0.7.tar.gz (15 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... error
error: subprocess-exited-with-error
× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> [18 lines of output]
Traceback (most recent call last):
File "/Users/mangalahegde/opt/anaconda3/lib/python3.9/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>
main()
File "/Users/mangalahegde/opt/anaconda3/lib/python3.9/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
File "/Users/mangalahegde/opt/anaconda3/lib/python3.9/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 118, in get_requires_for_build_wheel
return hook(config_settings)
File "/private/var/folders/hg/k3nyt16d7w95kybgqjmybvf40000gn/T/pip-build-env-ie3o13ap/overlay/lib/python3.9/site-packages/setuptools/build_meta.py", line 338, in get_requires_for_build_wheel
return self._get_build_requires(config_settings, requirements=['wheel'])
File "/private/var/folders/hg/k3nyt16d7w95kybgqjmybvf40000gn/T/pip-build-env-ie3o13ap/overlay/lib/python3.9/site-packages/setuptools/build_meta.py", line 320, in _get_build_requires
self.run_setup()
File "/private/var/folders/hg/k3nyt16d7w95kybgqjmybvf40000gn/T/pip-build-env-ie3o13ap/overlay/lib/python3.9/site-packages/setuptools/build_meta.py", line 484, in run_setup
super(_BuildMetaLegacyBackend,
File "/private/var/folders/hg/k3nyt16d7w95kybgqjmybvf40000gn/T/pip-build-env-ie3o13ap/overlay/lib/python3.9/site-packages/setuptools/build_meta.py", line 335, in run_setup
exec(code, locals())
File "<string>", line 44, in <module>
RuntimeError: Either set gmxapi_DIR or GROMACS_DIR to an existing installation
or set BUILDGROMACS to get a private copy. See installation docs...
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error
× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip.
Note: you may need to restart the kernel to use updated packages.
I tried cmake directory to change and update pip and python. I would also like to mention I am using Jupyter Notebook on MacOS for gmx installation.
I want to download pyqt5-tools to download and use QtEditor using this command on windows
pip install pyqt5-tools
But when I put in the command in cmd I get this message
Collecting pyqt5-tools
Using cached pyqt5_tools-5.15.4.3.2-py3-none-any.whl (29 kB)
Collecting click
Using cached click-8.1.3-py3-none-any.whl (96 kB)
Collecting pyqt5==5.15.4
Using cached PyQt5-5.15.4.tar.gz (3.3 MB)
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
╰─> [33 lines of output]
Traceback (most recent call last):
File "C:\Users\Windows 10\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\pip\_vendor\pep517\in_process\_in_process.py", line 144, 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:\Users\Windows 10\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\pip\_vendor\pep517\in_process\_in_process.py", line 351, in <module>
main()
File "C:\Users\Windows 10\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\pip\_vendor\pep517\in_process\_in_process.py", line 333, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Windows 10\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\pip\_vendor\pep517\in_process\_in_process.py", line 148, in prepare_metadata_for_build_wheel
whl_basename = backend.build_wheel(metadata_directory, config_settings)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Windows 10\AppData\Local\Temp\pip-build-env-zpwp4_go\overlay\Lib\site-packages\sipbuild\api.py", line 46, in build_wheel
project = AbstractProject.bootstrap('wheel',
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Windows 10\AppData\Local\Temp\pip-build-env-zpwp4_go\overlay\Lib\site-packages\sipbuild\abstract_project.py", line 87, in bootstrap
project.setup(pyproject, tool, tool_description)
File "C:\Users\Windows 10\AppData\Local\Temp\pip-build-env-zpwp4_go\overlay\Lib\site-packages\sipbuild\project.py", line 585, in setup
self.apply_user_defaults(tool)
File "C:\Users\Windows 10\AppData\Local\Temp\pip-install-lszibq72\pyqt5_ab212e2bd45f4304b01a003f265edfc5\project.py", line 63, in apply_user_defaults
super().apply_user_defaults(tool)
File "C:\Users\Windows 10\AppData\Local\Temp\pip-build-env-zpwp4_go\overlay\Lib\site-packages\pyqtbuild\project.py", line 70, in apply_user_defaults
super().apply_user_defaults(tool)
File "C:\Users\Windows 10\AppData\Local\Temp\pip-build-env-zpwp4_go\overlay\Lib\site-packages\sipbuild\project.py", line 236, in apply_user_defaults
self.builder.apply_user_defaults(tool)
File "C:\Users\Windows 10\AppData\Local\Temp\pip-build-env-zpwp4_go\overlay\Lib\site-packages\pyqtbuild\builder.py", line 69, 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.
As you see everything goes fine untill the preparing metadata part. I heard that it won't work on versions above 3.9 but is there a workaround for that?
I ran pip install -r requirements.txt accordingly to their instruction. It returned an error below. I am using a Macbook and I'm not sure if it supports the Macbook.
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 "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 144, 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 "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 351, in <module>
main()
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 333, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 148, in prepare_metadata_for_build_wheel
whl_basename = backend.build_wheel(metadata_directory, config_settings)
File "/private/var/folders/g8/3z75tlj1135gfxby5h4z8wlr0000gn/T/pip-build-env-ji0fn1rh/overlay/lib/python3.10/site-packages/sipbuild/api.py", line 46, in build_wheel
project = AbstractProject.bootstrap('wheel',
File "/private/var/folders/g8/3z75tlj1135gfxby5h4z8wlr0000gn/T/pip-build-env-ji0fn1rh/overlay/lib/python3.10/site-packages/sipbuild/abstract_project.py", line 87, in bootstrap
project.setup(pyproject, tool, tool_description)
File "/private/var/folders/g8/3z75tlj1135gfxby5h4z8wlr0000gn/T/pip-build-env-ji0fn1rh/overlay/lib/python3.10/site-packages/sipbuild/project.py", line 585, in setup
self.apply_user_defaults(tool)
File "/private/var/folders/g8/3z75tlj1135gfxby5h4z8wlr0000gn/T/pip-install-ihp6lzb3/pyqt5_2d7c8cf990a14fda93d8e2d2a9918655/project.py", line 63, in apply_user_defaults
super().apply_user_defaults(tool)
File "/private/var/folders/g8/3z75tlj1135gfxby5h4z8wlr0000gn/T/pip-build-env-ji0fn1rh/overlay/lib/python3.10/site-packages/pyqtbuild/project.py", line 70, in apply_user_defaults
super().apply_user_defaults(tool)
File "/private/var/folders/g8/3z75tlj1135gfxby5h4z8wlr0000gn/T/pip-build-env-ji0fn1rh/overlay/lib/python3.10/site-packages/sipbuild/project.py", line 236, in apply_user_defaults
self.builder.apply_user_defaults(tool)
File "/private/var/folders/g8/3z75tlj1135gfxby5h4z8wlr0000gn/T/pip-build-env-ji0fn1rh/overlay/lib/python3.10/site-packages/pyqtbuild/builder.py", line 69, 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.
I have no idea of how this code functioned so did nothing.
Downloading when I downloaded Pyqt5. But when I try to download Pyqt5-Tools, I'm getting an error.
I using Windows 11
When using Windows 10, it was easily downloaded. But Windows 11 has not been installed after installing.
pip install pyqt5-toolsCollecting pyqt5-toolsUsing cached pyqt5_tools-5.15.4.3.2-py3-none-any.whl (29 kB)Requirement already satisfied: click in c:\users\imran\appdata\local\packages\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\localcache\local-packages\python310\site-packages (from pyqt5-tools) (8.1.2)Using cached pyqt5_tools-5.15.4.3.1-py3-none-any.whl (28 kB)Using cached pyqt5_tools-5.15.4.3.0.3-py3-none-any.whl (28 kB)Using cached pyqt5_tools-5.15.3.3.2-py3-none-any.whl (29 kB)Using cached pyqt5_tools-5.15.3.3.1-py3-none-any.whl (28 kB)Collecting pyqt5==5.15.3Using cached PyQt5-5.15.3.tar.gz (3.3 MB)Installing build dependencies ... doneGetting requirements to build wheel ... donePreparing metadata (pyproject.toml) ... errorerror: 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:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.1264.0_x64__qbz5n2kfra8p0\lib\site-packages\pip_vendor\pep517\in_process_in_process.py", line 156, in prepare_metadata_for_build_wheelhook = backend.prepare_metadata_for_build_wheelAttributeError: 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:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.1264.0_x64__qbz5n2kfra8p0\lib\site-packages\pip\_vendor\pep517\in_process\_in_process.py", line 363, in <module>
main()
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.1264.0_x64__qbz5n2kfra8p0\lib\site-packages\pip\_vendor\pep517\in_process\_in_process.py", line 345, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.1264.0_x64__qbz5n2kfra8p0\lib\site-packages\pip\_vendor\pep517\in_process\_in_process.py", line 160, in prepare_metadata_for_build_wheel
whl_basename = backend.build_wheel(metadata_directory, config_settings)
File "C:\Users\imran\AppData\Local\Temp\pip-build-env-mym69u8_\overlay\Lib\site-packages\sipbuild\api.py", line 51, in build_wheel
project = AbstractProject.bootstrap('pep517')
File "C:\Users\imran\AppData\Local\Temp\pip-build-env-mym69u8_\overlay\Lib\site-packages\sipbuild\abstract_project.py", line 83, in bootstrap
project.setup(pyproject, tool, tool_description)
File "C:\Users\imran\AppData\Local\Temp\pip-build-env-mym69u8_\overlay\Lib\site-packages\sipbuild\project.py", line 594, in setup
self.apply_user_defaults(tool)
File "C:\Users\imran\AppData\Local\Temp\pip-install-ebfgqguq\pyqt5_e2d6632ee7174ad58d61d88e0ddffdcd\project.py", line 63, in apply_user_defaults
super().apply_user_defaults(tool)
File "C:\Users\imran\AppData\Local\Temp\pip-build-env-mym69u8_\overlay\Lib\site-packages\pyqtbuild\project.py", line 70, in apply_user_defaults
super().apply_user_defaults(tool)
File "C:\Users\imran\AppData\Local\Temp\pip-build-env-mym69u8_\overlay\Lib\site-packages\sipbuild\project.py", line 241, in apply_user_defaults
self.builder.apply_user_defaults(tool)
File "C:\Users\imran\AppData\Local\Temp\pip-build-env-mym69u8_\overlay\Lib\site-packages\pyqtbuild\builder.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.
I had the same problem here.
I had the Python 3.10 installed, but I found out that PyQt5 is not supported on the 3.10 version of Python. You can check this info here.
So I downgraded my Python version and everything worked fine.
This question already has an answer here:
Pyqt5-tools installation error on Widows 11
(1 answer)
Closed 4 months ago.
I am trying to install PyQt5-tools but I'm having trouble with it.
I'm getting the error that you can see below:
Collecting pyqt5-tools
Using cached pyqt5_tools-5.15.4.3.2-py3-none-any.whl (29 kB)
Collecting pyqt5==5.15.4
Using cached PyQt5-5.15.4.tar.gz (3.3 MB)
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:\Python\lib\site-packages\pip_vendor\pep517\in_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:\Python\lib\site-packages\pip\_vendor\pep517\in_process\_in_process.py", line 363, in <module>
main()
File "C:\Python\lib\site-packages\pip\_vendor\pep517\in_process\_in_process.py", line 345, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
File "C:\Python\lib\site-packages\pip\_vendor\pep517\in_process\_in_process.py", line 160, in prepare_metadata_for_build_wheel
whl_basename = backend.build_wheel(metadata_directory, config_settings)
File "C:\Users\bugra\AppData\Local\Temp\pip-build-env-lqdj0vd3\overlay\Lib\site-packages\sipbuild\api.py", line 46, in build_wheel
project = AbstractProject.bootstrap('wheel',
File "C:\Users\bugra\AppData\Local\Temp\pip-build-env-lqdj0vd3\overlay\Lib\site-packages\sipbuild\abstract_project.py", line 87, in bootstrap
project.setup(pyproject, tool, tool_description)
File "C:\Users\bugra\AppData\Local\Temp\pip-build-env-lqdj0vd3\overlay\Lib\site-packages\sipbuild\project.py", line 584, in setup
self.apply_user_defaults(tool)
File "C:\Users\bugra\AppData\Local\Temp\pip-install-9mv2p235\pyqt5_e5532f6d13a1499ab609510184a6e714\project.py", line 63, in apply_user_defaults
super().apply_user_defaults(tool)
File "C:\Users\bugra\AppData\Local\Temp\pip-build-env-lqdj0vd3\overlay\Lib\site-packages\pyqtbuild\project.py", line 70, in apply_user_defaults
super().apply_user_defaults(tool)
File "C:\Users\bugra\AppData\Local\Temp\pip-build-env-lqdj0vd3\overlay\Lib\site-packages\sipbuild\project.py", line 236, in apply_user_defaults
self.builder.apply_user_defaults(tool)
File "C:\Users\bugra\AppData\Local\Temp\pip-build-env-lqdj0vd3\overlay\Lib\site-packages\pyqtbuild\builder.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.
I had the same problem, when I researched, I saw that if you are using 3.10 version in python, pyqt5-tools cannot be installed in this version, I recommend you to install 3.9 version