完整报错: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 ./
安装成功!文章来源:https://www.toymoban.com/news/detail-639223.html
参考: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文章来源地址https://www.toymoban.com/news/detail-639223.html
到了这里,关于FileNotFoundError: [Errno 2] No such file or directory: ‘/usr/local/cuda-10.2:/bin/nvcc‘的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!