Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installation error with pip #639

Open
ErdiTk opened this issue Dec 8, 2024 · 5 comments
Open

Installation error with pip #639

ErdiTk opened this issue Dec 8, 2024 · 5 comments

Comments

@ErdiTk
Copy link

ErdiTk commented Dec 8, 2024

I am trying to install it but I get the following error:


pip install mamba-ssm --no-build-isolation
Collecting mamba-ssm
  Using cached mamba_ssm-2.2.4.tar.gz (91 kB)
  Preparing metadata (pyproject.toml) ... error
  error: subprocess-exited-with-error
  
  × Preparing metadata (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [21 lines of output]
      <string>:118: UserWarning: mamba_ssm was requested, but nvcc was not found.  Are you sure your environment has nvcc available?  If you're installing within a container from https://hub.docker.com/r/pytorch/pytorch, only images whose names contain 'devel' will provide nvcc.
      
      
      torch.__version__  = 2.5.1+cu124
      
      
      Traceback (most recent call last):
        File "path_to_venv/venv/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>
          main()
        File "path_to_venv/venv/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main
          json_out['return_val'] = hook(**hook_input['kwargs'])
                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/path_to_venv/venv/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 149, in prepare_metadata_for_build_wheel
          return hook(metadata_directory, config_settings)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "path_to_venv/venv/lib/python3.12/site-packages/setuptools/build_meta.py", line 377, in prepare_metadata_for_build_wheel
          self.run_setup()
        File "path_to_venv/venv/lib/python3.12/site-packages/setuptools/build_meta.py", line 320, in run_setup
          exec(code, locals())
        File "<string>", line 188, in <module>
      NameError: name 'bare_metal_version' is not defined
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

I tried to look on other open issues but none seems to match this. Is there something I am doing wrong?
I have to include the --no-build-isolation to avoid the torch is missing error.

@yunqingliu1996
Copy link

try pip install mamba-ssm[causal-conv1d] --no-build-isolation

@ErdiTk
Copy link
Author

ErdiTk commented Dec 19, 2024

try pip install mamba-ssm[causal-conv1d] --no-build-isolation

I tried but still get the same exact error.

@lifeiteng
Copy link

same error

@lifeiteng
Copy link

export MAMBA_SKIP_CUDA_BUILD=TRUE

@yihuai-gao
Copy link

If you are using a conda environment, activate this environment and install cuda to your current environment by running conda install cuda=12.4. Then you should be able to build the cuda kernel

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants