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] <title>can't manually download the wheels #340

Open
2 tasks done
liuzhihua-web opened this issue Nov 22, 2024 · 2 comments
Open
2 tasks done

[Installation] <title>can't manually download the wheels #340

liuzhihua-web opened this issue Nov 22, 2024 · 2 comments

Comments

@liuzhihua-web
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Have you followed all the steps in the FAQ?

  • I have tried the steps in the FAQ.

Current Behavior

No response

Error Line

I can't install torchsparse through pip,so I want manually download the wheels. I clicked on the website you provided.It shows
{"detail":"Not Found"}

Environment

- GCC:
- NVCC:
- PyTorch:
- PyTorch CUDA:

Full Error Log

Error Log

[PUT YOUR ERROR LOG HERE]

@twistalex
Copy link

have you solved this problem?can't install this package too

@pphuangyi
Copy link

Hi there, I have a successful experience I want to share here. It is a limited method and I cannot guarantee it will work on your platform, but it may be worth a try.

  1. Create a conda environment by conda create -n torchsparse python=3.11 (choose a better name if you like);
  2. Fork the repo, clone your fork, and cd into the folder;
  3. [optional] Open the setup.py and install the requirements manually (I like to do this, but it might not be necessary), EXCEPT for PyTorch related packages.
  4. Install CUDA toolkit version 11.8 by sudo apt install cuda-11-8. If you don't have sudo, try to ask the administrator to install it for you.
  5. Switch to CUDA-11.8 following instruction here (it was my way of installing MinkowskiEngine). If you are on a server, you may load the module by module load cuda[version].
  6. Install a version of PyTorch for CUDA-11.8 using commands provided here (for older versions of PyTorch, I used PyTorch 2.5.1)
  7. Finally run python setup.py install.
  8. You may need to switch back to your old CUDA after you are done.

NOTE: As you might have noticed, for me, the trick is to use slightly older versions of CUDA. My platform has g++ support for CUDA 11.8 but not CUDA 12.6 and that was why I failed to install torchsparse before. So

I think if you can achieve the following:

  1. Get a CUDA version that has g++ support;
  2. Get a PyTorch version compiled with the CUDA version in use.

Then you should be fine.

Please let me know your experience! Happy exploring sparse convolution with TorchSparse!

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

3 participants