python的mkl可以单独安装吗,如何在没有mkl的情况下安装scipy

Now I am working on Python 3.5 and trying to deploy my web application with Heroku. When I try to publish it online, Numpy+mkl is not compatible to Heroku and it can find only normal version of Numpy. So I uninstall Numpy+mkl and install normal Numpy. As Scipy installation requires numpy with mkl, I am now in trouble. I try to find Scipy wheel file but on Scipy website, all versions require numpy+mkl.

how can I find the Scipy without requirement of numpy+ mkl?

解决方案

In the comment above, @alrozac-S is referring to setting up a conda environment without MKL. From the Anaconda blog:

Finally, in case you do not need or want MKL, it is possible to opt out of installing MKL. We provide this option on Linux and OS X,

because MKL is a large package (roughly 100MB), and for many tasks it

is not necessary. The alternatives to MKL are OpenBLAS (for Linux),

and the native Accelerate Framework (for OS X). To use the non-MKL

versions of packages on Linux or OS X, first install Miniconda, and

then execute:

conda install nomkl

This effectively adds the nomkl feature, which makes conda prefer non-MKL versions of packages in all cases. For example, executing:

conda install scipy

If you have installed Anaconda, you can create a new environment that will install packages from the PyData stack without MKL using:

conda create -n pynomkl python nomkl

Then install the packages as usual

conda install -n pynomkl numpy pandas scipy scikit-learn

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值