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

Install fails on Windows #1189

Closed
jfb54 opened this issue Jun 25, 2021 · 11 comments
Closed

Install fails on Windows #1189

jfb54 opened this issue Jun 25, 2021 · 11 comments
Assignees

Comments

@jfb54
Copy link

jfb54 commented Jun 25, 2021

Using PyTorch 1.9, Cuda 11.1, Windows 10, Python 3.6.7

(venv) E:>pip install deepspeed
Collecting deepspeed
Using cached deepspeed-0.4.1.tar.gz (445 kB)
ERROR: Command errored out with exit status 1:
command: 'e:\venv\scripts\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\User\AppData\Local\Temp\pip-install-c2ug4_ge\deepspeed_eb7683ca68d140f88cf1945a64a53ac6\setup.py'"'"'; file='"'"'C:\Users\User\AppData\Local\Temp\pip-install-c2ug4_ge\deepspeed_eb7683ca68d140f88cf1945a64a53ac6\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' egg_info --egg-base 'C:\Users\User\AppData\Local\Temp\pip-pip-egg-info-lqik7o82'
cwd: C:\Users\User\AppData\Local\Temp\pip-install-c2ug4_ge\deepspeed_eb7683ca68d140f88cf1945a64a53ac6
Complete output (12 lines):
fatal: not a git repository (or any of the parent directories): .git
Traceback (most recent call last):
File "", line 1, in
File "C:\Users\User\AppData\Local\Temp\pip-install-c2ug4_ge\deepspeed_eb7683ca68d140f88cf1945a64a53ac6\setup.py", line 158, in
create_dir_symlink('..\..\csrc', '.\deepspeed\ops\csrc')
File "C:\Users\User\AppData\Local\Temp\pip-install-c2ug4_ge\deepspeed_eb7683ca68d140f88cf1945a64a53ac6\setup.py", line 150, in create_dir_symlink
os.remove(dest)
PermissionError: [WinError 5] Access is denied: '.\deepspeed\ops\csrc'
DS_BUILD_OPS=1
[WARNING] async_io requires the libraries: ['libaio-dev'] but are missing. Can be fixed by: apt install libaio-dev.
[WARNING] async_io requires the libraries: ['libaio-dev'] but are missing. Can be fixed by: apt install libaio-dev.
Install Ops={'cpu_adam': False, 'fused_adam': 1, 'fused_lamb': 1, 'sparse_attn': 1, 'transformer': 1, 'stochastic_transformer': 1, 'async_io': False, 'transformer_inference': 1, 'utils': 1, 'quantizer': 1}
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

@kuznetsoffandrey
Copy link

The same problem with me. Did you find solution?

@jfb54
Copy link
Author

jfb54 commented Jun 28, 2021

I didn't find a solution. The only workaround I found was to use Linux (which does install fine). However, I prefer to debug my code locally on a Windows machine before sending it off to a GPU cluster.

@dannyfriar
Copy link

Same problem here on Windows 10

@garrethcline
Copy link

I am also getting the same problem on windows 10

@danielnyari
Copy link

Same here, on Windows 10. Is there any update on this?

@ikcikoR
Copy link

ikcikoR commented Oct 17, 2022

Same issue, also Windows 10

@mrwyattii mrwyattii self-assigned this Sep 13, 2023
@mrwyattii
Copy link
Contributor

We are working on updating our installation. A common problem we found is that users on Windows that did not use administrative privilege when building would run into issues with the symlinks. We are working on removing the symlinks (along with other improvements): #4323

If you are still seeing this error, we highly recommend running on WSL instead of the base Windows OS.

@FurkanGozukara
Copy link

We are working on updating our installation. A common problem we found is that users on Windows that did not use administrative privilege when building would run into issues with the symlinks. We are working on removing the symlinks (along with other improvements): #4323

If you are still seeing this error, we highly recommend running on WSL instead of the base Windows OS.

It is ironic that Microsoft is Windows developer and we still can't install on Windows

image

@MontyFlange
Copy link

what does WSL mean ?

@mrwyattii
Copy link
Contributor

what does WSL mean ?

WSL is Windows Subsystem for Linux: https://learn.microsoft.com/en-us/windows/wsl/install

@jomayeri
Copy link
Contributor

jomayeri commented Sep 9, 2024

Please check out the latest version of DeepSpeed for Windows compatibility.

@jomayeri jomayeri closed this as completed Sep 9, 2024
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

10 participants