Cannot install requirements.txt

#5
by jsous - opened

Hello:

I have tried installing requirements.txt by creating a venv then running pip install -r requirements.txt. I also tried an alternative approach with Conda using a environment.yml file containing:
name: <myenv?
dependencies:

  • python==3.10
  • pip
  • pip:
    • -r requirements.txt

then using conda env create -f environment.yml

Both fail and give me the following error:
Using cached causal_conv1d-1.0.0.tar.gz (6.4 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
╰─> [17 lines of output]
Traceback (most recent call last):
File "/Users/johnsous/Desktop/BosonAI_project/mamba-chat/.venv/lib/python3.10/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in
main()
File "/Users/johnsous/Desktop/BosonAI_project/mamba-chat/.venv/lib/python3.10/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/johnsous/Desktop/BosonAI_project/mamba-chat/.venv/lib/python3.10/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/lw/8nrjrx855yl8897g_1bjwmtm0000gn/T/pip-build-env-r871sqks/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 325, in get_requires_for_build_wheel
return self._get_build_requires(config_settings, requirements=['wheel'])
File "/private/var/folders/lw/8nrjrx855yl8897g_1bjwmtm0000gn/T/pip-build-env-r871sqks/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 295, in _get_build_requires
self.run_setup()
File "/private/var/folders/lw/8nrjrx855yl8897g_1bjwmtm0000gn/T/pip-build-env-r871sqks/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 487, in run_setup
super().run_setup(setup_script=setup_script)
File "/private/var/folders/lw/8nrjrx855yl8897g_1bjwmtm0000gn/T/pip-build-env-r871sqks/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 311, in run_setup
exec(code, locals())
File "", line 8, 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.

I also tried updating pip and manually installing packaging using pip install packaging. This did not solve the issue. Any help will be much appreciated.

Thank you
John

Sign up or log in to comment