You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I recently installed Mamba on my Ubuntu system. My system environment is as follows:
PyTorch version: 2.0.0+cu117
CUDA version: 11.7
CUDA available: True
CUDA device count: 1
Current CUDA device: 0
CUDA device name: Tesla T4
But I tried many times, either from pip or directly installing the source code, and the error message is as follows: I tried to ask Claude and Gemini, and I installed it many times, but it didn't work. Can you help me solve this problem?
Error Log:
Requirement already satisfied: certifi>=2017.4.17 in /root/miniconda3/envs/mamba_env/lib/python3.10/site-packages (from requests->transformers->mamba_ssm==2.2.3) (2024.12.14)
Requirement already satisfied: mpmath<1.4,>=1.1.0 in /root/miniconda3/envs/mamba_env/lib/python3.10/site-packages (from sympy->torch->mamba_ssm==2.2.3) (1.3.0)
Building wheels for collected packages: mamba_ssm
Building editable for mamba_ssm (pyproject.toml) ... error
error: subprocess-exited-with-error
× Building editable for mamba_ssm (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [131 lines of output]
/tmp/pip-build-env-2wm1dwk5/overlay/lib/python3.10/site-packages/torch/_subclasses/functional_tensor.py:295: UserWarning: Failed to initialize NumPy: No module named 'numpy' (Triggered internally at ../torch/csrc/utils/tensor_numpy.cpp:84.)
cpu = _conversion_method_template(device=torch.device("cpu"))
For maximum compatibility please make sure to include a scheme prefix in your URL (e.g. 'http://'). Given value: Repository
torch.__version__ = 2.5.1+cu124
running editable_wheel
creating /tmp/pip-wheel-g0uk_73y/.tmp-47dgffcw/mamba_ssm.egg-info
writing /tmp/pip-wheel-g0uk_73y/.tmp-47dgffcw/mamba_ssm.egg-info/PKG-INFO
writing dependency_links to /tmp/pip-wheel-g0uk_73y/.tmp-47dgffcw/mamba_ssm.egg-info/dependency_links.txt
writing requirements to /tmp/pip-wheel-g0uk_73y/.tmp-47dgffcw/mamba_ssm.egg-info/requires.txt
writing top-level names to /tmp/pip-wheel-g0uk_73y/.tmp-47dgffcw/mamba_ssm.egg-info/top_level.txt
writing manifest file '/tmp/pip-wheel-g0uk_73y/.tmp-47dgffcw/mamba_ssm.egg-info/SOURCES.txt'
reading manifest file '/tmp/pip-wheel-g0uk_73y/.tmp-47dgffcw/mamba_ssm.egg-info/SOURCES.txt'
adding license file 'LICENSE'
adding license file 'AUTHORS'
writing manifest file '/tmp/pip-wheel-g0uk_73y/.tmp-47dgffcw/mamba_ssm.egg-info/SOURCES.txt'
creating '/tmp/pip-wheel-g0uk_73y/.tmp-47dgffcw/mamba_ssm-2.2.3.dist-info'
creating /tmp/pip-wheel-g0uk_73y/.tmp-47dgffcw/mamba_ssm-2.2.3.dist-info/WHEEL
running build_py
running build_ext
Traceback (most recent call last):
File "/tmp/pip-build-env-2wm1dwk5/overlay/lib/python3.10/site-packages/setuptools/command/editable_wheel.py", line 139, in run
self._create_wheel_file(bdist_wheel)
File "/tmp/pip-build-env-2wm1dwk5/overlay/lib/python3.10/site-packages/setuptools/command/editable_wheel.py", line 340, in _create_wheel_file
files, mapping = self._run_build_commands(dist_name, unpacked, lib, tmp)
File "/tmp/pip-build-env-2wm1dwk5/overlay/lib/python3.10/site-packages/setuptools/command/editable_wheel.py", line 263, in _run_build_commands
self._run_build_subcommands()
File "/tmp/pip-build-env-2wm1dwk5/overlay/lib/python3.10/site-packages/setuptools/command/editable_wheel.py", line 290, in _run_build_subcommands
self.run_command(name)
File "/tmp/pip-build-env-2wm1dwk5/overlay/lib/python3.10/site-packages/setuptools/_distutils/cmd.py", line 339, in run_command
self.distribution.run_command(command)
File "/tmp/pip-build-env-2wm1dwk5/overlay/lib/python3.10/site-packages/setuptools/dist.py", line 999, in run_command
super().run_command(command)
File "/tmp/pip-build-env-2wm1dwk5/overlay/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 1002, in run_command
cmd_obj.run()
File "/tmp/pip-build-env-2wm1dwk5/overlay/lib/python3.10/site-packages/setuptools/command/build_ext.py", line 99, in run
_build_ext.run(self)
File "/tmp/pip-build-env-2wm1dwk5/overlay/lib/python3.10/site-packages/setuptools/_distutils/command/build_ext.py", line 365, in run
self.build_extensions()
File "/tmp/pip-build-env-2wm1dwk5/overlay/lib/python3.10/site-packages/torch/utils/cpp_extension.py", line 520, in build_extensions
_check_cuda_version(compiler_name, compiler_version)
File "/tmp/pip-build-env-2wm1dwk5/overlay/lib/python3.10/site-packages/torch/utils/cpp_extension.py", line 415, in _check_cuda_version
raise RuntimeError(CUDA_MISMATCH_MESSAGE.format(cuda_str_version, torch.version.cuda))
RuntimeError:
The detected CUDA version (11.7) mismatches the version that was used to compile
PyTorch (12.4). Please make sure to use the same CUDA versions.
/tmp/pip-build-env-2wm1dwk5/overlay/lib/python3.10/site-packages/setuptools/_distutils/dist.py:1002: _DebuggingTips: Problem in editable installation.
!!
********************************************************************************
An error happened while installing `mamba_ssm` in editable mode.
The following steps are recommended to help debug this problem:
- Try to install the project normally, without using the editable mode.
Does the error still persist?
(If it does, try fixing the problem before attempting the editable mode).
- If you are using binary extensions, make sure you have all OS-level
dependencies installed (e.g. compilers, toolchains, binary libraries, ...).
- Try the latest version of setuptools (maybe the error was already fixed).
- If you (or your project dependencies) are using any setuptools extension
or customization, make sure they support the editable mode.
After following the steps above, if the problem still persists and
you think this is related to how setuptools handles editable installations,
please submit a reproducible example
(see https://stackoverflow.com/help/minimal-reproducible-example) to:
https://github.com/pypa/setuptools/issues
See https://setuptools.pypa.io/en/latest/userguide/development_mode.html for details.
********************************************************************************
!!
cmd_obj.run()
Traceback (most recent call last):
File "/root/miniconda3/envs/mamba_env/lib/python3.10/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>
main()
File "/root/miniconda3/envs/mamba_env/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 "/root/miniconda3/envs/mamba_env/lib/python3.10/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 273, in build_editable
return hook(wheel_directory, config_settings, metadata_directory)
File "/tmp/pip-build-env-2wm1dwk5/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 476, in build_editable
return self._build_with_temp_dir(
File "/tmp/pip-build-env-2wm1dwk5/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 407, in _build_with_temp_dir
self.run_setup()
File "/tmp/pip-build-env-2wm1dwk5/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 320, in run_setup
exec(code, locals())
File "<string>", line 336, in <module>
File "/tmp/pip-build-env-2wm1dwk5/overlay/lib/python3.10/site-packages/setuptools/__init__.py", line 117, in setup
return distutils.core.setup(**attrs)
File "/tmp/pip-build-env-2wm1dwk5/overlay/lib/python3.10/site-packages/setuptools/_distutils/core.py", line 186, in setup
return run_commands(dist)
File "/tmp/pip-build-env-2wm1dwk5/overlay/lib/python3.10/site-packages/setuptools/_distutils/core.py", line 202, in run_commands
dist.run_commands()
File "/tmp/pip-build-env-2wm1dwk5/overlay/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 983, in run_commands
self.run_command(cmd)
File "/tmp/pip-build-env-2wm1dwk5/overlay/lib/python3.10/site-packages/setuptools/dist.py", line 999, in run_command
super().run_command(command)
File "/tmp/pip-build-env-2wm1dwk5/overlay/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 1002, in run_command
cmd_obj.run()
File "/tmp/pip-build-env-2wm1dwk5/overlay/lib/python3.10/site-packages/setuptools/command/editable_wheel.py", line 139, in run
self._create_wheel_file(bdist_wheel)
File "/tmp/pip-build-env-2wm1dwk5/overlay/lib/python3.10/site-packages/setuptools/command/editable_wheel.py", line 340, in _create_wheel_file
files, mapping = self._run_build_commands(dist_name, unpacked, lib, tmp)
File "/tmp/pip-build-env-2wm1dwk5/overlay/lib/python3.10/site-packages/setuptools/command/editable_wheel.py", line 263, in _run_build_commands
self._run_build_subcommands()
File "/tmp/pip-build-env-2wm1dwk5/overlay/lib/python3.10/site-packages/setuptools/command/editable_wheel.py", line 290, in _run_build_subcommands
self.run_command(name)
File "/tmp/pip-build-env-2wm1dwk5/overlay/lib/python3.10/site-packages/setuptools/_distutils/cmd.py", line 339, in run_command
self.distribution.run_command(command)
File "/tmp/pip-build-env-2wm1dwk5/overlay/lib/python3.10/site-packages/setuptools/dist.py", line 999, in run_command
super().run_command(command)
File "/tmp/pip-build-env-2wm1dwk5/overlay/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 1002, in run_command
cmd_obj.run()
File "/tmp/pip-build-env-2wm1dwk5/overlay/lib/python3.10/site-packages/setuptools/command/build_ext.py", line 99, in run
_build_ext.run(self)
File "/tmp/pip-build-env-2wm1dwk5/overlay/lib/python3.10/site-packages/setuptools/_distutils/command/build_ext.py", line 365, in run
self.build_extensions()
File "/tmp/pip-build-env-2wm1dwk5/overlay/lib/python3.10/site-packages/torch/utils/cpp_extension.py", line 520, in build_extensions
_check_cuda_version(compiler_name, compiler_version)
File "/tmp/pip-build-env-2wm1dwk5/overlay/lib/python3.10/site-packages/torch/utils/cpp_extension.py", line 415, in _check_cuda_version
raise RuntimeError(CUDA_MISMATCH_MESSAGE.format(cuda_str_version, torch.version.cuda))
RuntimeError:
The detected CUDA version (11.7) mismatches the version that was used to compile
PyTorch (12.4). Please make sure to use the same CUDA versions.
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building editable for mamba_ssm
Failed to build mamba_ssm
ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (mamba_ssm)
The text was updated successfully, but these errors were encountered:
I recently installed Mamba on my Ubuntu system. My system environment is as follows:
PyTorch version: 2.0.0+cu117
CUDA version: 11.7
CUDA available: True
CUDA device count: 1
Current CUDA device: 0
CUDA device name: Tesla T4
But I tried many times, either from pip or directly installing the source code, and the error message is as follows: I tried to ask Claude and Gemini, and I installed it many times, but it didn't work. Can you help me solve this problem?
Error Log:
Requirement already satisfied: certifi>=2017.4.17 in /root/miniconda3/envs/mamba_env/lib/python3.10/site-packages (from requests->transformers->mamba_ssm==2.2.3) (2024.12.14)
Requirement already satisfied: mpmath<1.4,>=1.1.0 in /root/miniconda3/envs/mamba_env/lib/python3.10/site-packages (from sympy->torch->mamba_ssm==2.2.3) (1.3.0)
Building wheels for collected packages: mamba_ssm
Building editable for mamba_ssm (pyproject.toml) ... error
error: subprocess-exited-with-error
× Building editable for mamba_ssm (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [131 lines of output]
/tmp/pip-build-env-2wm1dwk5/overlay/lib/python3.10/site-packages/torch/_subclasses/functional_tensor.py:295: UserWarning: Failed to initialize NumPy: No module named 'numpy' (Triggered internally at ../torch/csrc/utils/tensor_numpy.cpp:84.)
cpu = _conversion_method_template(device=torch.device("cpu"))
For maximum compatibility please make sure to include a
scheme
prefix in your URL (e.g. 'http://'). Given value: Repositorynote: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building editable for mamba_ssm
Failed to build mamba_ssm
ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (mamba_ssm)
The text was updated successfully, but these errors were encountered: