Intel MKL FATAL ERROR: Cannot load libmkl_avx2.so or libmkl_def.so.

这种错误,我装了个scikit-image,后来执行某个某个程序,就报这个错误

 

 

pip install mkl
Collecting mkl
  Retrying (Retry(total=4, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x7fab82919be0>: Failed to establish a new connection: [Errno 113] 没有到主机的路由',)': /simple/mkl/
  Retrying (Retry(total=3, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x7fab82919240>: Failed to establish a new connection: [Errno 113] 没有到主机的路由',)': /simple/mkl/

用pip 直接安装这个,报这个错误,后来用这个可以 pip install -i https://pypi.tuna.tsinghua.edu.cn/simple mkl

不知道是不是我之前设置了源的原因,但是并没有解决标题的错误。

解决办法:

用conda更新scikit-learn

执行命令:conda upgrade scikit-learn

出现这个错误,


Fetching package metadata ...
CondaHTTPError: HTTP 000 CONNECTION FAILED for url <https://repo.continuum.io/pkgs/main/linux-64/repodata.json.bz2>
Elapsed: -

An HTTP error occurred when trying to retrieve this URL.
HTTP errors are often intermittent, and a simple retry will get you on your way.
ConnectionError(MaxRetryError("HTTPSConnectionPool(host='repo.continuum.io', port=443): Max retries exceeded with url: /pkgs/main/linux-64/repodata.json.bz2 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f2f199a7eb8>: Failed to establish a new connection: [Errno 113] No route to host',))",),)

--感觉像是源的问题,把conda换源:

conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/

conda config --set show_channel_urls yes
成功安装

在执行某个程序,不报标题错误

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值