Repository navigation
Closed as not planned
Description
Describe the bug
Fail to pip-install deepspeed 0.12.6
To Reproduce
pip install deepspeed
Expected behavior
Expected successful installation.
Error report output
(Truncated):
Collecting deepspeed!=0.11.0
Using cached deepspeed-0.12.6.tar.gz (1.2 MB)
Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [19 lines of output]
[2024-01-08 14:52:17,604] [INFO] [real_accelerator.py:161:get_accelerator] Setting ds_accelerator to cuda (auto detect)
[2024-01-08 14:52:18,545] [INFO] [real_accelerator.py:161:get_accelerator] Setting ds_accelerator to cuda (auto detect)
test.c
LINK : fatal error LNK1181: 无法打开输入文件“aio.lib”
Traceback (most recent call last):
File "<string>", line 2, in <module>
File "<pip-setuptools-caller>", line 34, in <module>
File "C:\Users\ouzho\AppData\Local\Temp\pip-install-sl7ccsbf\deepspeed_244f8b986fe84fa2be10e453c7ca05c5\setup.py", line 192, in <module>
ext_modules.append(builder.builder())
File "C:\Users\ouzho\AppData\Local\Temp\pip-install-sl7ccsbf\deepspeed_244f8b986fe84fa2be10e453c7ca05c5\op_builder\builder.py", line 637, in builder
extra_link_args=self.strip_empty_entries(self.extra_ldflags()))
File "C:\Users\ouzho\AppData\Local\Temp\pip-install-sl7ccsbf\deepspeed_244f8b986fe84fa2be10e453c7ca05c5\op_builder\inference_cutlass_builder.py", line 71, in extra_ldflags
import dskernels
ModuleNotFoundError: No module named 'dskernels'
DS_BUILD_OPS=1
[WARNING] async_io requires the dev libaio .so object and headers but these were not found.
[WARNING] If libaio is already installed (perhaps from source), try setting the CFLAGS and LDFLAGS environment variables to where it can be found.
[WARNING] Please specify the CUTLASS repo directory as environment variable $CUTLASS_PATH
[WARNING] Filtered compute capabilities ['6.0', '6.1', '7.0']
[end of output]
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.
BTW, that line in Chinese characters ('无法打开输入文件') means 'cannot open input file' or similar.
Screenshots
N/A
System info (please complete the following information):
- OS: win11
- GPU: 1x RTX3060 Mobile
- DeepSpeed-0.12.6 (trying to install)
- Python 3.10.6
Docker context
N/A
Additional context
Error actually happened while trying to install the ludwig[full] package, which requires deepspeed.
Activity
[-][BUG][/-][+]Cannot install deepspeed 0.12.6, fail to produce metadata.[/+]loadams commentedon Jan 8, 2024
@simonou99 - it looks like you are on Windows, we know Windows support isn't completely there, and it looks like part of why you are erroring out is because it cannot find dskernels:
However, this package is not supported for Windows due to the kernels not all being available there. There are largely two approaches here:
loadams commentedon Jan 16, 2024
@simonou99 - does that help to answer your question? There's not much else to add for this issue, unfortunately.
simonou99 commentedon Jan 17, 2024
Hi, many thanks for the help. sry, i got pretty busy lately and couldnt make time for replying or checking my project. unfortunately its kinda inconvenient for me to move my current stuff onto wsl. so, thanks again for the help, it does provoke some thoughts for my future projects, but I might have to close this thread for now...
nctu6 commentedon Jul 5, 2024
Hi,
Even in linux, this error happened: ModuleNotFoundError: No module named 'dskernels'.
Linux v08pytsurveyllm-6wlcc 3.10.0-1127.el7.x86_64 #1 SMP Tue Mar 31 23:36:51 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
deepspeed: install from source
torch 2.1.1+cu121
torchaudio 2.1.1+cu121
torchvision 0.16.1+cu121
loadams commentedon Jul 9, 2024
Hi @nctu6 - have you run
pip install deepspeed-kernels? Or can you share the output ofpip list?nctu6 commentedon Jul 10, 2024
Hi,
I have resolved the installation issue.
Run the following command to install the required package:
Export the PATH variable:
Execute the installation with the following command:
Best regards,
ankan8145 commentedon Jan 13, 2025
I resolved the installation issue by executing the following command:
conda install deepspeedanatasiasb30 commentedon Nov 7, 2025
Hi, excuse me, may I ask why when I want to install deepseed it's like this. But I can't install wsl or anything because it's a campus PC.
(llavaart-env) C:\Users\server>pip install deepseed==0.12.6
ERROR: Could not find a version that satisfies the requirement deepseed==0.12.6 (from versions: none)
ERROR: No matching distribution found for deepseed==0.12.6
(llavaart-env) C:\Users\server>pip install deepspeed==0.12.6
Collecting deepspeed==0.12.6
Using cached deepspeed-0.12.6.tar.gz (1.2 MB)
Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [50 lines of output]
[2025-11-08 06:49:41,610] [INFO] [real_accelerator.py:161:get_accelerator] Setting ds_accelerator to cuda (auto detect)
[2025-11-08 06:49:45,328] torch.distributed.elastic.multiprocessing.redirects: [WARNING] NOTE: Redirects are currently not supported in Windows or MacOs.
C:\Users\server\anaconda3\envs\llavaart-env\lib\site-packages\bitsandbytes\cuda_setup\main.py:167: UserWarning: Welcome to bitsandbytes. For bug reports, please run
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.
Gate op compatibility on dskernels and ROCm support (deepspeedai#9150)