GAMSPy fails installing

Description of the issue

I am trying to install gamspy on a macOS from the terminal. After creating and activating the environment, I get to this error message telling me that “numpy” is not found. However, I do have it installed!

Error message and stack trace

pip install gamspy

Collecting gamspy
Using cached gamspy-1.7.0-py3-none-any.whl.metadata (6.4 kB)
Collecting gamsapi==49.2.0 (from gamsapi[transfer]==49.2.0->gamspy)
Using cached gamsapi-49.2.0.tar.gz (890 kB)
Installing build dependencies … done
Getting requirements to build wheel … done
Preparing metadata (pyproject.toml) … done
INFO: pip is looking at multiple versions of gamspy to determine which version is compatible with other requirements. This could take a while.
Collecting gamspy
Using cached gamspy-1.6.0-py3-none-any.whl.metadata (6.4 kB)
Collecting gamsapi==49.1.0 (from gamsapi[transfer]==49.1.0->gamspy)
Using cached gamsapi-49.1.0.tar.gz (890 kB)
Installing build dependencies … done
Getting requirements to build wheel … done
Preparing metadata (pyproject.toml) … done
Collecting gamspy
Using cached gamspy-1.5.1-py3-none-any.whl.metadata (6.4 kB)
Collecting gamsapi==48.6.1 (from gamsapi[transfer]==48.6.1->gamspy)
Using cached gamsapi-48.6.1.tar.gz (881 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
╰─> [23 lines of output]
Traceback (most recent call last):
File “/Users/edoar/.venv/lib/python3.13/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py”, line 389, in
main()
~~~~^^
File “/Users/edoar/.venv/lib/python3.13/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py”, line 373, in main
json_out[“return_val”] = hook(**hook_input[“kwargs”])
~~~~^^^^^^^^^^^^^^^^^^^^^^^^
File “/Users/edoar/.venv/lib/python3.13/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py”, line 143, in get_requires_for_build_wheel
return hook(config_settings)
File “/private/var/folders/wf/56n4gx491vgckrbngdfgj1_m0000gp/T/pip-build-env-biki2q1i/overlay/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 “/private/var/folders/wf/56n4gx491vgckrbngdfgj1_m0000gp/T/pip-build-env-biki2q1i/overlay/lib/python3.13/site-packages/setuptools/build_meta.py”, line 304, in _get_build_requires
self.run_setup()
~~~~~~~~~~~~~~^^
File “/private/var/folders/wf/56n4gx491vgckrbngdfgj1_m0000gp/T/pip-build-env-biki2q1i/overlay/lib/python3.13/site-packages/setuptools/build_meta.py”, line 522, in run_setup
super().run_setup(setup_script=setup_script)
~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/private/var/folders/wf/56n4gx491vgckrbngdfgj1_m0000gp/T/pip-build-env-biki2q1i/overlay/lib/python3.13/site-packages/setuptools/build_meta.py”, line 320, in run_setup
exec(code, locals())
~~~~^^^^^^^^^^^^^^^^
File “”, line 29, in
ModuleNotFoundError: No module named ‘numpy’
[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.

GAMSPy version

1.7

Are you sure it’s a newly created environment? Looks like GAMSPy dependencies clashes with other dependencies. Can you run pip list after you activate your environment and paste output here? If you see other packages there, can you create a new virtual environment and try to install gamspy with python -m pip install gamspy?

Muhammet