pytorch_cluster icon indicating copy to clipboard operation
pytorch_cluster copied to clipboard

installation failed with torch 1.13

Open twangnh opened this issue 1 year ago • 0 comments
trafficstars

Hi, my torch version is 1.13:

root@autodl-container-c0b042a675-32c75a17:~/autodl-tmp/dronedetectron2# pip list | grep torch
torch                          1.13.1+cu116
torchaudio                     0.13.1+cu116
torchvision                    0.14.1+cu116

and I'm trying to install it with pip install torch-cluster and failed:


root@autodl-container-c0b042a675-32c75a17:~/autodl-tmp/dronedetectron2# pip install torch-cluster
Looking in indexes: http://mirrors.aliyun.com/pypi/simple
Collecting torch-cluster
  Using cached http://mirrors.aliyun.com/pypi/packages/54/31/e7f7a28253cd907404eb652607613b35779140b326d15d0636511b7b9438/torch_cluster-1.6.3.tar.gz (54 kB)
  Preparing metadata (setup.py) ... done
Requirement already satisfied: scipy in /root/miniconda3/lib/python3.8/site-packages (from torch-cluster) (1.10.1)
Requirement already satisfied: numpy<1.27.0,>=1.19.5 in /root/miniconda3/lib/python3.8/site-packages (from scipy->torch-cluster) (1.24.3)
Building wheels for collected packages: torch-cluster
  Building wheel for torch-cluster (setup.py) ... \^canceled
ERROR: Operation cancelled by user

[notice] A new release of pip available: 22.2.2 -> 24.2
[notice] To update, run: pip install --upgrade pip
root@autodl-container-c0b042a675-32c75a17:~/autodl-tmp/dronedetectron2# pip install torch-cluster --no-cache-dir
Looking in indexes: http://mirrors.aliyun.com/pypi/simple
Collecting torch-cluster
  Downloading http://mirrors.aliyun.com/pypi/packages/54/31/e7f7a28253cd907404eb652607613b35779140b326d15d0636511b7b9438/torch_cluster-1.6.3.tar.gz (54 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 54.5/54.5 kB 2.3 MB/s eta 0:00:00
  Preparing metadata (setup.py) ... done
Requirement already satisfied: scipy in /root/miniconda3/lib/python3.8/site-packages (from torch-cluster) (1.10.1)
Requirement already satisfied: numpy<1.27.0,>=1.19.5 in /root/miniconda3/lib/python3.8/site-packages (from scipy->torch-cluster) (1.24.3)
Building wheels for collected packages: torch-cluster
  Building wheel for torch-cluster (setup.py) ... |^canceled
ERROR: Operation cancelled by user

[notice] A new release of pip available: 22.2.2 -> 24.2
[notice] To update, run: pip install --upgrade pip

I also tried to install with

root@autodl-container-c0b042a675-32c75a17:~/autodl-tmp/dronedetectron2# pip install git+https://github.com/rusty1s/pytorch_cluster.git
Looking in indexes: http://mirrors.aliyun.com/pypi/simple
Collecting git+https://github.com/rusty1s/pytorch_cluster.git
  Cloning https://github.com/rusty1s/pytorch_cluster.git to /tmp/pip-req-build-qlr6hf8z
  Running command git clone --filter=blob:none --quiet https://github.com/rusty1s/pytorch_cluster.git /tmp/pip-req-build-qlr6hf8z
  fatal: unable to access 'https://github.com/rusty1s/pytorch_cluster.git/': GnuTLS recv error (-110): The TLS connection was non-properly terminated.
  error: subprocess-exited-with-error
  
  × git clone --filter=blob:none --quiet https://github.com/rusty1s/pytorch_cluster.git /tmp/pip-req-build-qlr6hf8z did not run successfully.
  │ exit code: 128
  ╰─> See above for output.
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

× git clone --filter=blob:none --quiet https://github.com/rusty1s/pytorch_cluster.git /tmp/pip-req-build-qlr6hf8z did not run successfully.
│ exit code: 128
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.

[notice] A new release of pip available: 22.2.2 -> 24.2
[notice] To update, run: pip install --upgrade pip

I also tried :

oot@autodl-container-c0b042a675-32c75a17:~/autodl-tmp/dronedetectron2# pip install torch-cluster==1.5.9 -f https://data.pyg.org/whl/torch-1.13.1+cu116.html
Looking in indexes: http://mirrors.aliyun.com/pypi/simple
Looking in links: https://data.pyg.org/whl/torch-1.13.1+cu116.html
Collecting torch-cluster==1.5.9
  Using cached http://mirrors.aliyun.com/pypi/packages/4b/27/2f38017ae386ba27c13efe6a87eca7c3c58766c3117c86e0fa2c3f7562a9/torch_cluster-1.5.9.tar.gz (38 kB)
  Preparing metadata (setup.py) ... done
Building wheels for collected packages: torch-cluster
  Building wheel for torch-cluster (setup.py) ... \

but it stucked at building wheel forever.

Could you please help?

twangnh avatar Aug 02 '24 13:08 twangnh