Open HUSTNO1WXY opened 2 years ago
Can you try to fix the versioning according to the latest supported version of torch-cluster
for PyTorch 1.8 (see here)?
pip install torch-cluster==1.5.9 -f https://data.pyg.org/whl/torch-1.8.1+cu102.html
Hi Matthias, I had the same issue as OP, and tried version 1.5.9 install, but modified for my case (note I'm using pipenv):
pipenv install torch-cluster==1.5.9 -f https://data.pyg.org/whl/torch-1.8.1+cpu.html
the link specified also failed to build for my case, but I got a different error. See below abbreviated output
C:\Users\Paran.virtualenvs\HSR_Project-f_Oht-Bk\lib\site-packages\torch\include\c10/util/Optional.h(540): note: see reference to alias template instantiation 'c10::OptionalBase<std::tuple<at::Tensor,at::Tensor>>' being compiled
C:\Users\Paran.virtualenvs\HSR_Project-f_Oht-Bk\lib\site-packages\torch\include\torch\csrc\api\include\torch/nn/modules/rnn.h(155): note: see reference to class template instantiation 'c10::optional<std::tuple<at::Tensor,at::Tensor>>' being compiled
C:\Users\Paran.virtualenvs\HSR_Project-f_Oht-Bk\lib\site-packages\torch\include\c10/util/Optional.h(432): warning C4624: 'c10::trivially_copyable_optimization_optional_base
This error suggests that it is not actually picking up the wheels from https://data.pyg.org/whl/torch-1.8.1+cpu.html. Does pipenv
support the -f
option? What's the output when installing via --verbose
?
Right, I realized with a separate package that -f is not supported. pipenv requires you to directly reference the whl if not found in the default directory, as far as I can tell. I managed to install with this:
pipenv install https://data.pyg.org/whl/torch-1.8.0%2Bcpu/torch_cluster-1.5.9-cp39-cp39-win_amd64.whl
Can you try to fix the versioning according to the latest supported version of
torch-cluster
for PyTorch 1.8 (see here)?pip install torch-cluster==1.5.9 -f https://data.pyg.org/whl/torch-1.8.1+cu102.html
this solution worked
您可以尝试根据 PyTorch 1.8 的最新支持版本修复版本控制吗(请参阅此处)?
torch-cluster
pip install torch-cluster==1.5.9 -f https://data.pyg.org/whl/torch-1.8.1+cu102.html
这个解决方案奏效了
这个可以
still cannot install with torch 1.13.1, tried
pip install torch-cluster==1.5.9 -f https://data.pyg.org/whl/torch-1.13.1+cu116.html
I solved using these steps:
😵 Describe the installation problem
Environment
conda
,pip
, source):piptorch-scatter
):2.0.9