Closed frankleitor closed 3 months ago
The issue here is the flash-attn
package on windows and python 3.12. I downgraded to python 3.9 and managed to resolve this. I might recommend using 3.8.10 as thats whats mentioned as the development version in the repo. Additionally I had to use the legacy resolver for pip (--use-deprecated=legacy-resolver
) as installing without was taking forever
so when the installation reaches the part to "build wheel" an error occurs and i doens't install, any idea what to do? i'm not a programmer but i like AI stuff like this.
Collecting flash-attn>=2.5.0 (from stable-audio-tools) Using cached flash_attn-2.5.9.post1.tar.gz (2.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 ╰─> [20 lines of output] Traceback (most recent call last): File "C:\Python312\Lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 353, in
main()
File "C:\Python312\Lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 335, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Python312\Lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 118, in get_requires_for_build_wheel
return hook(config_settings)
^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\reise\AppData\Local\Temp\pip-build-env-h1619fxz\overlay\Lib\site-packages\setuptools\build_meta.py", line 325, in get_requires_for_build_wheel
return self._get_build_requires(config_settings, requirements=['wheel'])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\reise\AppData\Local\Temp\pip-build-env-h1619fxz\overlay\Lib\site-packages\setuptools\build_meta.py", line 295, in _get_build_requires
self.run_setup()
File "C:\Users\reise\AppData\Local\Temp\pip-build-env-h1619fxz\overlay\Lib\site-packages\setuptools\build_meta.py", line 487, in run_setup
super().run_setup(setup_script=setup_script)
File "C:\Users\reise\AppData\Local\Temp\pip-build-env-h1619fxz\overlay\Lib\site-packages\setuptools\build_meta.py", line 311, in run_setup
exec(code, locals())
File "", line 9, in
ModuleNotFoundError: No module named 'packaging'
[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.****