macos安装pytorch出现Intel MKL 问题

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了macos安装pytorch出现Intel MKL 问题相关的知识,希望对你有一定的参考价值。

macos安装pytorch时。执行下面的命令出现报错:Intel MKL FATAL ERROR Cannot load libmkl_intel_thread.dyli
conda install numpy pyyaml mkl mkl-include setuptools cmake cffi typing
这个问题是mkl模块引起的,所以执行下面的命令,卸载mkl,并更新相关的其
他模块
conda install nomkl numpy scipy scikit-learn numexpr pandas
conda remove mkl mkl-service

下面这一段是anaconda官方文档对此的说明,源自https://docs.anaconda.com/mkl-optimizations/
Uninstalling MKL
MKL takes roughly 100MB and some use cases do not need it, so users can opt out of MKL and instead use OpenBLAS for Linux or the native Accelerate Framework for MacOSX. To opt out, run conda install nomkl and then use conda install to install packages that would normally include MKL or depend on packages that include MKL, such as scipy, numpy, and pandas. Conda will install the non-MKL versions of these packages together with their dependencies. If you are using OS X or Linux, have already installed these packages or already installed all of Anaconda, and wish to switch away from MKL, use the command conda install nomkl numpy scipy scikit-learn numexpr followed by conda remove mkl mkl-service.

注意:不要使用清华的anaconda源,太旧了。现在官方源已经可以访问了

问题的最后解决是通过官方源重新执行如下命令安装就好了
conda install numpy pyyaml mkl mkl-include setuptools cmake cffi typing

以上是关于macos安装pytorch出现Intel MKL 问题的主要内容,如果未能解决你的问题,请参考以下文章

安装pytorch后出现Intel MKL FATAL ERROR: Cannot load mkl_intel_thread.dll.错误

CAFFE安装:ATLAS/ Intel MKL安装

求助,linux下intel mkl的安装

ROS实验笔记之——安装QPEP以及Intel-MKL

ROS实验笔记之——安装QPEP以及Intel-MKL

ROS实验笔记之——安装QPEP以及Intel-MKL