Installation Error on Windows 11 through Command Prompt.
I am using Windows 11 no WSL, Installed Cuda , Pytorch, Visual Studio C++Build Tools, Windows SDK 10.0.26100.0 . I tired installing Deepspeed through Command Prompt but keep getting the same error again and again . "unable to open aio.lib". Some said the file is available in Windows Build tools SDK but it is not there. I have intel i5 1155G7 CPU and Iris Graphics.
If anyone can help its Appreciated. 💯👍
ERROR :
C:\Users\varun>python --version Python 3.11.0
C:\Users\varun>nvcc --version nvcc: NVIDIA (R) Cuda compiler driver Copyright (c) 2005-2024 NVIDIA Corporation Built on Wed_Aug_14_10:26:51_Pacific_Daylight_Time_2024 Cuda compilation tools, release 12.6, V12.6.68 Build cuda_12.6.r12.6/compiler.34714021_0
C:\Users\varun>pip show torch Name: torch Version: 2.4.0+cpu Summary: Tensors and Dynamic neural networks in Python with strong GPU acceleration Home-page: https://pytorch.org/ Author: PyTorch Team Author-email: [email protected] License: BSD-3 Location: C:\Users\varun\AppData\Local\Programs\Python\Python311\Lib\site-packages Requires: filelock, fsspec, jinja2, networkx, sympy, typing-extensions Required-by: torchaudio, torchvision
C:\Users\varun>pip install deepspeed Collecting deepspeed Using cached deepspeed-0.15.3.tar.gz (1.4 MB) Preparing metadata (setup.py) ... error error: subprocess-exited-with-error
× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [28 lines of output]
[2024-11-03 01:40:03,982] [WARNING] [real_accelerator.py:174:get_accelerator] Setting accelerator to CPU. If you have GPU or other accelerator, we were unable to detect it.
[2024-11-03 01:40:03,990] [INFO] [real_accelerator.py:219:get_accelerator] Setting ds_accelerator to cpu (auto detect)
[2024-11-03 01:40:05,343] [WARNING] [real_accelerator.py:174:get_accelerator] Setting accelerator to CPU. If you have GPU or other accelerator, we were unable to detect it.
[2024-11-03 01:40:05,350] [INFO] [real_accelerator.py:219:get_accelerator] Setting ds_accelerator to cpu (auto detect)
test.c
LINK : fatal error LNK1181: cannot open input file 'aio.lib'
Traceback (most recent call last):
File "
note: This error originates from a subprocess, and is likely not a problem with pip. error: metadata-generation-failed
× Encountered error while generating package metadata. ╰─> See above for output.
note: This is an issue with the package mentioned above, not pip. hint: See above for details.
Thank You.
Hi @neonvarun - the problem is that you are installing the linux whl in this line:
C:\Users\varun>pip install deepspeed
The latest Windows whl we have published is with the 0.15.0 version. See the second whl listed under files here: https://pypi.org/project/deepspeed/0.15.0/#files
Please try installing that version/whl and you should be able to get that whl installed as it is meant for Windows.
Hi @neonvarun - closing this issue for now. Let us know if you are still hitting issues.
Thank you for your help its installed now 💯 .