PyNEC installation via pip fails
Hallo,
trying to install PyNEC via pip on a Ubuntu 24.04 within a venv yields following outcome. The message confuses me, since numpy is definetely installed.
Any help from you would be appreciated.
Oli
Collecting pynec Using cached PyNEC-1.7.3.6.tar.gz (24 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
╰─> [20 lines of output]
Traceback (most recent call last):
File "/home/oliver/workspace/venv/rf/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in
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.
Same issue here, also with uv
❯ uv pip install pyNEC
× Failed to download and build `pynec==1.7.3.6`
╰─▶ Build backend failed to determine requirements with `build_wheel()` (exit status: 1)
[stderr]
Traceback (most recent call last):
File "<string>", line 14, in <module>
requires = get_requires_for_build({})
File "/Users/myzinsky/.cache/uv/builds-v0/.tmpqKEMMt/lib/python3.13/site-packages/setuptools/build_meta.py", line 334, in
get_requires_for_build_wheel
return self._get_build_requires(config_settings, requirements=[])
~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/myzinsky/.cache/uv/builds-v0/.tmpqKEMMt/lib/python3.13/site-packages/setuptools/build_meta.py", line 304, in
_get_build_requires
self.run_setup()
~~~~~~~~~~~~~~^^
File "/Users/myzinsky/.cache/uv/builds-v0/.tmpqKEMMt/lib/python3.13/site-packages/setuptools/build_meta.py", line 522, in run_setup
super().run_setup(setup_script=setup_script)
~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/myzinsky/.cache/uv/builds-v0/.tmpqKEMMt/lib/python3.13/site-packages/setuptools/build_meta.py", line 320, in run_setup
exec(code, locals())
~~~~^^^^^^^^^^^^^^^^
File "<string>", line 12, in <module>
get_requires_for_build = getattr(backend, "get_requires_for_build_wheel", None)
^^^^^^^^^^^^^^^^^^
ModuleNotFoundError: No module named 'numpy'
Hi! I've recently got the same problem.
The updating wheel package via
pip install --upgrade wheel
solved my problem for PyNEC==1.7.3.4 version. I've tried it on Python 3.11.