-
Notifications
You must be signed in to change notification settings - Fork 633
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
Cant use powershell command to build for Nightly PyTorch on Win - filename too long #1132
Comments
Same issue.. I can't install it from PyPi or from the git anymore on Windows, and I have enabled long filenames both in the registry and through the group policy editor. A workaround is to change your TEMP environment variable and reboot, then install, but you will have to change it back and reboot again after. This is not a reasonable ask for end users who are trying to install my requirements. |
same issue.
|
+1
note: This error originates from a subprocess, and is likely not a problem with pip. |
We don't have expertise on Windows so we're not sure how we can help. Our CI is regularly building on Windows so you could check there to see how we're doing it. You could try passing |
Firstly, I cloned the repository, instead of automatically downloading to the cache directory. Then remove the win10 filename constraint by: I have another error: catastrophic error, out of memory. The solution is to reduce the number of ninja workers: set MAX_JOBS=4 to avoid high memory utility. It works in my case on Win10 + torch2.5.1 + cu121 + VS2022 x64 |
Ive tried to use command to build for nightly PyTorch version on Win, problem is that it uses filenames waaay too long, so it just throws error and does obviously nothing.
Not sure if its Python 3.11.9 issue or not.
Any way around? I do have long paths enabled, but it doesnt seem to have any effect (probably cause app itself needs to be able to use long paths).
The text was updated successfully, but these errors were encountered: