当前位置:   article > 正文

安装MinkowskiEngine报错subprocess.CalledProcessError: Command ‘[‘which‘, ‘g++‘]‘ returned non-zero exit_subprocess.calledprocesserror: command '['which',

subprocess.calledprocesserror: command '['which', 'g++']' returned non-zero

安装命令: 

  1. git clone https://github.com/NVIDIA/MinkowskiEngine.git
  2. cd MinkowskiEngine
  3. python setup.py install --blas_include_dirs=${CONDA_PREFIX}/include --blas=openblas

报错:

  1. File "/home/xxx/miniconda3/envs/pcgc/lib/python3.8/subprocess.py", line 415, in check_output
  2. return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
  3. File "/home/xxx/miniconda3/envs/pcgc/lib/python3.8/subprocess.py", line 516, in run
  4. raise CalledProcessError(retcode, process.args,
  5. subprocess.CalledProcessError: Command '['which', 'g++']' returned non-zero exit status 1.

解决:export CXX=g++-7

又报错:

  1. nvcc fatal : Unsupported gpu architecture 'compute_75'
  2. error: command '/usr/bin/nvcc' failed with exit code 1

解决:export CUDA_HOME=/usr/local/cuda

成功:

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

闽ICP备14008679号