Skip to content

Problems with installation #388

Open
@YourPatrickStar

Description

@YourPatrickStar

This is an error message during installation. I have tried many methods but cannot solve it. What is the problem?
(zhang) zhangjinbei@root514-B460M-Pro4:~$ pip install torch-scatter torch-sparse -f https://data.pyg.org/whl/torch-1.13.1+cu117.html
Looking in links: https://data.pyg.org/whl/torch-1.13.1+cu117.html
Requirement already satisfied: torch-scatter in ./anaconda3/envs/zhang/lib/python3.8/site-packages (2.1.2)
Collecting torch-sparse
Using cached torch_sparse-0.6.18.tar.gz (209 kB)
Preparing metadata (setup.py) ... done
Requirement already satisfied: scipy in ./anaconda3/envs/zhang/lib/python3.8/site-packages (from torch-sparse) (1.10.1)
Requirement already satisfied: numpy<1.27.0,>=1.19.5 in ./anaconda3/envs/zhang/lib/python3.8/site-packages (from scipy->torch-sparse) (1.21.4)
Building wheels for collected packages: torch-sparse
Building wheel for torch-sparse (setup.py) ... error
error: subprocess-exited-with-error

× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [52 lines of output]
running bdist_wheel
running build
running build_py
creating build/lib.linux-x86_64-cpython-38/torch_sparse
copying torch_sparse/spadd.py -> build/lib.linux-x86_64-cpython-38/torch_sparse
copying torch_sparse/metis.py -> build/lib.linux-x86_64-cpython-38/torch_sparse
copying torch_sparse/typing.py -> build/lib.linux-x86_64-cpython-38/torch_sparse
copying torch_sparse/saint.py -> build/lib.linux-x86_64-cpython-38/torch_sparse
copying torch_sparse/masked_select.py -> build/lib.linux-x86_64-cpython-38/torch_sparse
copying torch_sparse/matmul.py -> build/lib.linux-x86_64-cpython-38/torch_sparse
copying torch_sparse/storage.py -> build/lib.linux-x86_64-cpython-38/torch_sparse
copying torch_sparse/rw.py -> build/lib.linux-x86_64-cpython-38/torch_sparse
copying torch_sparse/testing.py -> build/lib.linux-x86_64-cpython-38/torch_sparse
copying torch_sparse/permute.py -> build/lib.linux-x86_64-cpython-38/torch_sparse
copying torch_sparse/index_select.py -> build/lib.linux-x86_64-cpython-38/torch_sparse
copying torch_sparse/select.py -> build/lib.linux-x86_64-cpython-38/torch_sparse
copying torch_sparse/mul.py -> build/lib.linux-x86_64-cpython-38/torch_sparse
copying torch_sparse/diag.py -> build/lib.linux-x86_64-cpython-38/torch_sparse
copying torch_sparse/reduce.py -> build/lib.linux-x86_64-cpython-38/torch_sparse
copying torch_sparse/spmm.py -> build/lib.linux-x86_64-cpython-38/torch_sparse
copying torch_sparse/tensor.py -> build/lib.linux-x86_64-cpython-38/torch_sparse
copying torch_sparse/convert.py -> build/lib.linux-x86_64-cpython-38/torch_sparse
copying torch_sparse/transpose.py -> build/lib.linux-x86_64-cpython-38/torch_sparse
copying torch_sparse/cat.py -> build/lib.linux-x86_64-cpython-38/torch_sparse
copying torch_sparse/coalesce.py -> build/lib.linux-x86_64-cpython-38/torch_sparse
copying torch_sparse/narrow.py -> build/lib.linux-x86_64-cpython-38/torch_sparse
copying torch_sparse/utils.py -> build/lib.linux-x86_64-cpython-38/torch_sparse
copying torch_sparse/init.py -> build/lib.linux-x86_64-cpython-38/torch_sparse
copying torch_sparse/bandwidth.py -> build/lib.linux-x86_64-cpython-38/torch_sparse
copying torch_sparse/eye.py -> build/lib.linux-x86_64-cpython-38/torch_sparse
copying torch_sparse/sample.py -> build/lib.linux-x86_64-cpython-38/torch_sparse
copying torch_sparse/add.py -> build/lib.linux-x86_64-cpython-38/torch_sparse
copying torch_sparse/spspmm.py -> build/lib.linux-x86_64-cpython-38/torch_sparse
running egg_info
writing torch_sparse.egg-info/PKG-INFO
writing dependency_links to torch_sparse.egg-info/dependency_links.txt
writing requirements to torch_sparse.egg-info/requires.txt
writing top-level names to torch_sparse.egg-info/top_level.txt
ERROR setuptools_scm._file_finders.git listing git files failed - pretending there aren't any
reading manifest file 'torch_sparse.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no previously-included files matching '' found under directory 'third_party/parallel-hashmap/css'
warning: no previously-included files matching '
' found under directory 'third_party/parallel-hashmap/html'
warning: no previously-included files matching '' found under directory 'third_party/parallel-hashmap/tests'
warning: no previously-included files matching '
' found under directory 'third_party/parallel-hashmap/examples'
warning: no previously-included files matching '' found under directory 'third_party/parallel-hashmap/benchmark'
warning: no previously-included files matching '
' found under directory 'test'
warning: no previously-included files matching '*' found under directory 'benchmark'
adding license file 'LICENSE'
writing manifest file 'torch_sparse.egg-info/SOURCES.txt'
running build_ext
error: [Errno 2] No such file or directory: ':/usr/local/cuda-11.7/bin/nvcc'
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for torch-sparse
Running setup.py clean for torch-sparse
Failed to build torch-sparse
ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (torch-sparse)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions