当前位置:   article > 正文

记录:ubuntu18.04 cuda11.7 +torch1.13.1安装apex时报错解决办法_ubuntu18.04 cuda11.7 apex

ubuntu18.04 cuda11.7 apex
  1. git clone https://github.com/NVIDIA/apex
  2. cd apex
  3. # if pip >= 23.1 (ref: https://pip.pypa.io/en/stable/news/#v23-1) which supports multiple `--config-settings` with the same key...
  4. 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" ./
  5. # otherwise
  6. pip install -v --disable-pip-version-check --no-cache-dir --no-build-isolation --global-option="--cpp_ext" --global-option="--cuda_ext" ./

NVIDIA/apex: A PyTorch Extension: Tools for easy mixed precision and distributed training in Pytorch (github.com)按照官方安装步骤报错如下:

  1. ModuleNotFoundError: No module named 'packaging'
  2. error: subprocess-exited-with-error
  3. × Getting requirements to build wheel did not run successfully.
  4. exit code: 1
  5. ╰─> See above for output.
  6. note: This error originates from a subprocess, and is likely not a problem with pip.
  7. full command: /home/huiwei/miniconda3/envs/earthformer/bin/python3 /home/huiwei/miniconda3/envs/earthformer/lib/python3.9/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py get_requires_for_build_wheel /tmp/tmpuel1iqe5
  8. cwd: /tmp/pip-req-build-7az4lcr7
  9. Getting requirements to build wheel ... error
  10. error: subprocess-exited-with-error
  11. × Getting requirements to build wheel did not run successfully.
  12. exit code: 1
  13. ╰─> See above for output.
  14. note: This error originates from a subprocess, and is likely not a problem with pip.

解决办法:

https://github.com/NVIDIA/apex/issues/1737#issuecomment-1762662648

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/凡人多烦事01/article/detail/699935
推荐阅读
相关标签
  

闽ICP备14008679号