rusty1s / pytorch_sparse

PyTorch Extension Library of Optimized Autograd Sparse Matrix Operations
MIT License
1.01k stars 147 forks source link

OSError: [WinError 127] The specified procedure could not be found. #283

Closed yangyangdotcom closed 1 year ago

yangyangdotcom commented 2 years ago

While I was trying to pip install the pytorch_sparse by running the following command: pip install torch-sparse -f https://data.pyg.org/whl/torch-1.12.1+$cu113.html

I got this error:

error: subprocess-exited-with-error

  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> [8 lines of output]
      Traceback (most recent call last):
        File "<string>", line 2, in <module>
        File "<pip-setuptools-caller>", line 34, in <module>
        File "C:\Users\yihe\AppData\Local\Temp\pip-install-5rbdjmni\torch-sparse_72b0544df5b746a5a7fcfeb44fba647e\setup.py", line 8, in <module>
          import torch
        File "C:\Users\yihe\anaconda3\envs\PPI_GNN_seqvec_v6\lib\site-packages\torch\__init__.py", line 129, in <module>
          raise err
      OSError: [WinError 127] The specified procedure could not be found. Error loading "C:\Users\yihe\anaconda3\envs\PPI_GNN_seqvec_v6\lib\site-packages\torch\lib\caffe2_detectron_ops.dll" or one of its dependencies.
      [end of output]

Any idea how to solve this problem?

rusty1s commented 2 years ago

You need to install PyTorch beforehand.

github-actions[bot] commented 1 year ago

This issue had no activity for 6 months. It will be closed in 2 weeks unless there is some new activity. Is this issue already resolved?