Link MKL to an installed Numpy in Anaconda?

杀马特。学长 韩版系。学妹 提交于 2019-12-05 14:39:34

To do this, you'll have to get the Numpy source code and create a site.cfg file in the main folder that tells Numpy where to look for the MKL libraries. Use the site.cfg.example file as a guide; there's a section in there on MKL that should tell you the exact lines you need.

Once you have a site.cfg file, run python setup.py config. This will spit out the configuration info (it looks like the output of numpy.config.show()). You should see the paths to your MKL libraries in there (if not, you'll have to play around with the site.cfg file until you do).

Then, you can build and install with python setup.py build and python setup.py install. You may want to uninstall your old Numpy first.

I have a blog post on installing Numpy with OpenBLAS. While your situation is a little different, a lot of steps are similar I think.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!