macos安裝pytorch出現Intel MKL 問題
阿新 • • 發佈:2019-03-04
ron exp 一段 native ping and numpy lib hat 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 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.
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/
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 問題