1017  conda install -c conda-forge gcc=11.4.0 gxx=11.4.0
 1018  pip install vllm-0.8.5+cu118-cp38-abi3-manylinux1_x86_64.whl
 1025  pip install -r requirements.txt
 1026  pip install flash-attn==2.7.3 --no-build-isolation

https://github.com/deepseek-ai/DeepSeek-OCR.git

https://www.modelscope.cn/models/deepseek-ai/DeepSeek-OCR/summary

主要原因是GCC版本太低或者太高

主要报错

      /usr/local/cuda/include/crt/host_config.h:132:2: error: #error -- unsupported GNU version! gcc versions later than 11 are not supported! The nvcc flag '-allow-unsupported-compiler' can be used to override this version check; however, using an unsupported host compiler may cause compilation failure or incorrect run time execution. Use at your own risk.
        132 | #error -- unsupported GNU version! gcc versions later than 11 are not supported! The nvcc flag '-allow-unsupported-compiler' can be used to override this version check; however, using an unsupported host compiler may cause compilation failure or incorrect run time execution. Use at your own risk.
            |  ^~~~~
      error: command '/usr/local/cuda/bin/nvcc' failed with exit code 255
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for xformers
  Running setup.py clean for xformers
      /usr/local/cuda/include/crt/host_config.h:132:2: error: #error -- unsupported GNU version! gcc versions later than 11 are not supported! The nvcc flag '-allow-unsupported-compiler' can be used to override this version check; however, using an unsupported host compiler may cause compilation failure or incorrect run time execution. Use at your own risk.
        132 | #error -- unsupported GNU version! gcc versions later than 11 are not supported! The nvcc flag '-allow-unsupported-compiler' can be used to override this version check; however, using an unsupported host compiler may cause compilation failure or incorrect run time execution. Use at your own risk.
 

Logo

Agent 垂直技术社区,欢迎活跃、内容共建。

更多推荐