I wanted to install the module PyStray
for a project.
I used the generic command ->
pip install Pystruct
Here is the error :
Collecting Pystruct
Using cached pystruct-0.3.2.tar.gz (5.6 MB)
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
╰─> [17 lines of output]
Traceback (most recent call last):
File "C:UsersMeit SantAppDataLocalProgramsPythonPython310libsite-packagespip_vendorpyproject_hooks_in_process_in_process.py", line 353, in <module>
main()
File "C:UsersMeit SantAppDataLocalProgramsPythonPython310libsite-packagespip_vendorpyproject_hooks_in_process_in_process.py", line 335, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
File "C:UsersMeit SantAppDataLocalProgramsPythonPython310libsite-packagespip_vendorpyproject_hooks_in_process_in_process.py", line 118, in get_requires_for_build_wheel
return hook(config_settings)
File "C:UsersMeit SantAppDataLocalTemppip-build-env-3y5ayshqoverlayLibsite-packagessetuptoolsbuild_meta.py", line 325, in get_requires_for_build_wheel
return self._get_build_requires(config_settings, requirements=['wheel'])
File "C:UsersMeit SantAppDataLocalTemppip-build-env-3y5ayshqoverlayLibsite-packagessetuptoolsbuild_meta.py", line 295, in _get_build_requires
self.run_setup()
File "C:UsersMeit SantAppDataLocalTemppip-build-env-3y5ayshqoverlayLibsite-packagessetuptoolsbuild_meta.py", line 487, in run_setup
super().run_setup(setup_script=setup_script)
File "C:UsersMeit SantAppDataLocalTemppip-build-env-3y5ayshqoverlayLibsite-packagessetuptoolsbuild_meta.py", line 311, in run_setup
exec(code, locals())
File "<string>", line 3, in <module>
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.
note: This error originates from a subprocess, and is likely not a problem with pip.
As it says ModuleNotFoundError: No module named 'numpy'
, I installed Numpy
using pip install numpy
, which completed successfully.
Collecting numpy
Downloading numpy-1.26.4-cp310-cp310-win_amd64.whl.metadata (61 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 61.0/61.0 kB 819.4 kB/s eta 0:00:00
Downloading numpy-1.26.4-cp310-cp310-win_amd64.whl (15.8 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 15.8/15.8 MB 2.6 MB/s eta 0:00:00
Installing collected packages: numpy
Successfully installed numpy-1.26.4
However on re-running the command pip install Pystruct
. It threw the same error. Even though numpy
is installed.