赞
踩
apex
报错: subprocess.CalledProcessError: Command '['ninja', '-v']' returned non-zero exit status 1. RuntimeError: Error building extension 'fused_adam' ImportError: /home/ubuntu/.cache/torch_extensions/py39_cu117/fused_adam/fused_adam.so: cannot open shared object file: No such file or directory RuntimeError: Error compiling objects for extension error: subprocess-exited-with-error × Building wheel for apex (pyproject.toml) did not run successfully. │ exit code: 1 ╰─> See above for output. Building wheel for apex (pyproject.toml) ... error ERROR: Failed building wheel for apex Failed to build apex ERROR: Could not build wheels for apex, which is required to install pyproject.toml-based projects 解决: git clone https://www.github.com/nvidia/apex cd apex git checkout f3a960f80244cf9e80558ab30f7f7e8cbf03c0a0 pip install -v --disable-pip-version-check --no-cache-dir --no-build-isolation --config-settings "--build-option=--cpp_ext" --config-settings "--build-option=--cuda_ext" ./
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。