FileNotFoundError: [Errno 2] No such file or directory: ‘/usr/local/cuda-10.2:/bin/nvcc‘

完整报错:FileNotFoundError: [Errno 2] No such file or directory: '/usr/local/cuda-10.2:/bin/nvcc'

亲测有效!!!!!

解决方法:

git clone https://github.com/NVIDIA/apex
cd apex
pip install -v --no-cache-dir ./


export CUDA_HOME=/usr/local/cuda-10.2
#这里的10.2改成你自己报错的版本
#然后再运行一次
pip install -v --no-cache-dir ./

FileNotFoundError: [Errno 2] No such file or directory: ‘/usr/local/cuda-10.2:/bin/nvcc‘_第1张图片

 安装成功!

参考:FileNotFoundError: [Errno 2] No such file or directory: ':/usr/local/cuda:/usr/local/cuda-10.1/bin/nvcc': ':/usr/local/cuda:/usr/local/cuda-10.1/bin/nvcc' · Issue #368 · NVIDIA/apex · GitHub

你可能感兴趣的:(linux,运维,服务器)