Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

installation failed with torch 1.13 #224

Open
twangnh opened this issue Aug 2, 2024 · 0 comments
Open

installation failed with torch 1.13 #224

twangnh opened this issue Aug 2, 2024 · 0 comments

Comments

@twangnh
Copy link

twangnh commented Aug 2, 2024

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant