-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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 do I install PyTorch3d on Windows #876
Comments
There are lots of errors in the STL, used with torch stuff, inside a CUDA compilation. (These are a bit like the sort of errors you'd get if the compiler was too old / in a mode for old C++.) I have no idea what is wrong. What happens without DISTUTILS_USE_SDK? What prompted you to use that? Do you know if you can compile a simple CUDA test program with your setup? |
Hi, thanks for getting back to me! I'm using the latest version of Visual Studio 2019 so the compiler should be up to date. Running it without DISTUTILS_USE_SDK causes this error:
I'm not sure if that's what you meant but I've tried to compile this simple CUDA program with nvcc
and it generated the .lib and .exp file without any problem. |
Your error list has
Can you check actions/runner-images#3485 and https://stackoverflow.com/questions/67732065/why-does-vs2019-pro-have-compile-errors-with-xutility-xmemory-and-atomic-when which seem to be related to what you are seeing? If you need to get rid of the c++14 flag, you would change pytorch3d's setup.py. |
Ok so, removing the c++14 flag just stops the compiler from printing "Ignoring flag" but it doesn't help.
These are only the last lines, I've uploaded the full log here: |
Looking at the actual errors in that text file, in particular the first occurrences of the |
Ok basically I fixed some "
Sadly, now I'm stuck with this:
Some suggested running the cmd as Administrator but it doesn't fix the problem for me :( |
I could try to uninstall mamba and install anaconda. If I remember correctly, anaconda is installed in the home directory and shouldn't cause any permission issues. |
Alright it finally worked! Thank you very much for your help 👌 |
Can you mention what you had to change for kEpsilon to work? No windows package planned soon, although in general it would be a good idea. |
Sure, these are all the modifications I had to do:
Yeah, it would be a great idea, I had almost given up trying to make it work. But I guess it's pretty complex to do since no one has done it already |
Thanks! |
Summary: Few tweaks to make CUDA build on windows happier, as remarked in #876. Reviewed By: patricklabatut Differential Revision: D31688188 fbshipit-source-id: 20816d6215f2e3ec898f81ae4221b1c2ff24b64f
Hello, I need to install Pytorch3d using Windows 10 as SO. My environment is:
Someone faced this problem or know how to solve it? |
It's not the first time that I see an error like that but I don't remember exactly how to solve it. Maybe running it as administrator could help? |
This issue is closed. The "access is denied" thing is being discussed on #1353 |
❓ Questions on how to use PyTorch3D
I know it's a pretty broad question but here's my situation:
I clone the repository move into it and run:
The output is the following.
Nice part
The text was updated successfully, but these errors were encountered: