当前位置:   article > 正文

安装DCNv3时报错NotADirectoryError: [Errno 20] Not a directory: ‘hipconfig‘_[errno 20] not a directory: '/home/zzyuanyi/.local

[errno 20] not a directory: '/home/zzyuanyi/.local/share/jupyter/runtime/ker

解决方法:
1、查看报错信息,找到这一条:和这有关的cuda_to_hip_mappings.py
2、然后去修改这个文件:anaconda3/envs/xxx/lib/python3.10/site-packages/torch/utils/hipify/cuda_to_hip_mappings.py
先cd跳入文件夹,再vim进去
3、添加一个NotADirectoryError

try:
    rocm_path = subprocess.check_output(["hipconfig", "--rocmpath"]).decode("utf-8")
except subprocess.CalledProcessError:
    print(f"Warning: hipconfig --rocmpath failed, assuming {rocm_path}")
# 修改这一行, 添加 NotADirectoryError
except (FileNotFoundError, PermissionError, NotADirectoryError ): 
    # Do not print warning. This is okay. This file can also be imported for non-ROCm builds.
    pass

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9

4、保存一下就可以了,然后就可以正常安装了

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

闽ICP备14008679号