-
Notifications
You must be signed in to change notification settings - Fork 143
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
How to install torchsparse in Windows10? #12
Comments
Hi, I haven't tried the installation on Windows 10. If you encounter any problem when installing torchsparse on Windows10 please reply me in this issue and I will try to figure out the solution. Best, |
I'm closing this issue due to the inactivity. Please feel free to reopen it if the problem has not been resolved. |
I have Windows 10 and I have been trying to install torchsparse, but no success. When I run pip things compile, but linkage fails. It says: Any ideas? Thank you |
Well, I have tried some solutions about the installation and failed, perhaps it's better to install on linux. |
I was able to install making some changes. First of all, dont do that "ninja" fix. the one that you change "ninja -v" to "ninja --version". This will make your compiling to have new errors that should not be there (like the difficult to compile files that it already have access, I'm saying it because it happened to me 😅) if you didnt change it, just go to the next step. I noticed that it was complaining that it was missing some sparsehash include code. ("google/dense_hash_map") https://github.com/sparsehash/sparsehash/releases/tag/sparsehash-2.0.4 after getting this file, you will have a zip file. and paste it on you python enviroment include folder. C:\Users\Pichau.conda\envs\sparseneus\include it was like this after i pasted them This will solve the issue of the other issue I had was related to this error To solve it I saw what was commented on these two places and isl-org/StableViewSynthesis#15 They say that there is a problem when we try to build on windows, about some type of variables, to change from "long" to "int64_t". I was able to mae it work changeing these files: torchsparse\backend\hash\hash_cuda.cu to run the installation I ran "python setup.py install" For people that dont want to change the files from torchsparse by itself, I made a fork and updated those files. Hope it helps |
Thanks man! You did my day! |
For anyone reach this issue after 2022.12. With cuda 11.3 or newer maybe, some additional changes are needed for the above post.
|
I did everything @denred0 and @initialneil suggested, and got two other errors:
To fix these two errors, I downgraded setuptools by But now I get a OS: Win10 Here's my vs BuildTools
|
Hello, why change "long" to "int64_t" ? "int64_t" seems not to be a legal datatype? I change "long" to "long long" and it worked. |
No description provided.
The text was updated successfully, but these errors were encountered: