-
Notifications
You must be signed in to change notification settings - Fork 7.1k
Unable to build torchvision on Windows (installed torch from source and it is running) #4001
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
Comments
@TheSigmaGuy This is the error that you get if the gcc compiler is not found in the following line: Line 365 in f87ce88
I would recommend confirming that the gcc compiler is installed on your system. If not you could install it via conda. For more info on how to install TorchVision from source have a look on our guide. I'll close the ticket to keep things tidy but feel free to reopen if you face more issues. |
@datumbox But gcc is for Linux based systems. I am using MSVC Windows system. How can I solve that? I don't think I should install gcc in windows and then compile and torch was compiled with MSVC. |
@andfoy Do you happen to know if the project can be compiled with ffmpeg support on Windows using a gcc setup like this? Our CI does not currently supports it but I wonder if you have tried it. @TheSigmaGuy Is it crucial for you to have ffmpeg support? If not you can try disabling it by overwriting the following var to false: Line 348 in f87ce88
|
I installed mingw (I don't have Ninja installed, I don't see it as requirement). Still there is a strange error I see without much detail.
I checked the commit log and found that size_t can be fixed via It worked. Though the checkout was to may 7th, torchvision version installed on mine seem to be |
Awesome, thanks for confirming. The The version should not be an issue. Just make sure you pull the latest master and install the pytorch from nightly as described in our contribution guide. |
I don't know if we should setup a CI that runs a build using MinGW and not MSVC? |
@andfoy PyTorch only builds CI with MSVC, so we should probably keep MSVC as well. I think we might have some parts in our setup.py for video which might not work well on Windows, we should double-check that |
❓ Questions and Help
I have installed torch successfully in my PC via source, but I am facing this issue while installing the torchvison. I don't think I can install torchvision via pip as it is re-downloading the torch.
Please help me to install it
TIA
i used
python setup.py install
The text was updated successfully, but these errors were encountered: