安装Alphapose时:unable to execute ':/usr/local/cuda-9.0/bin/nvcc': No such file or directory


unable to execute ':/usr/local/cuda/bin/nvcc': No such file or directory
error: command ':/usr/local/cuda/bin/nvcc' failed with exit status 1

提示找不到 nvcc, 但是输入 nvcc --version, 却可以正常显示:

nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2017 NVIDIA Corporation
Built on Fri_Sep__1_21:08:03_CDT_2017
Cuda compilation tools, release 9.0, V9.0.176

仔细观察发现, 报错的路径里面多了一个冒号!!

export CUDA_HOME=$CUDA_HOME:/usr/local/cuda
# 将上面的语句修改成:
export CUDA_HOME=/usr/local/cuda

然后, 刷新shell

exec $SHELL$

接着, 删掉旧文件重新build

rm -rf build
python setup.py  build develop

参考博客:https://blog.csdn.net/ksws0292756/article/details/84859903


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM