当前位置:   article > 正文

anaconda安装环境出现safetyerror_safetyerror: the package for mkl located at d:\ana

safetyerror: the package for mkl located at d:\anaconda3\pkgs\mkl-2020.4-hb70f87d_311 appears to be corrupted. the path 'library/bin/mkl_avx512.dll

我在安装tensorflow-gpu=1.12时出现了下面的错误:

SafetyError: The package for tensorflow-base located at /home/lkf/lkf_u/anaconda3/pkgs/tensorflow-base-1.12.0-gpu_py36had579c0_0
appears to be corrupted. The path 'lib/python3.6/site-packages/tensorflow/python/training/server_lib.py'
has an incorrect size.
  reported size: 17209 bytes
  actual size: 17723 bytes
  • 1
  • 2
  • 3
  • 4
  • 5

当然不止这一个。
原因应该是你之前通过conda install和pip install两种方式安装了同一个包。
解决方法为:
删除该环境所有包:conda remove -n <env name> --all
清空anaconda pkg缓存:conda clean -a
然后可以进入anaconda3/pkgs下查看有问题的包是不是没有了。
然后就可以重来了。
或者你可以单独删掉某个包而不是全部重来。

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

闽ICP备14008679号