如何在Windows 64位上为python 2.7安装numpy + mkl? [英] How to install numpy+mkl for python 2.7 on windows 64 bit?

查看:367
本文介绍了如何在Windows 64位上为python 2.7安装numpy + mkl?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在Python中安装了numpy 1.9.0.现在我该怎么做才能获得numpy + mkl?

I've already installed numpy 1.9.0 in Python.Now what should I do to get numpy+mkl?

推荐答案

如果您没有完整的Python发行版或不想安装它,则可以从whl软件包. ="http://www.lfd.uci.edu/~gohlke/pythonlibs/#numpy" rel ="noreferrer"> Christoph Gohlke的网页.此whl包含numpy,并与mkl链接.安装此软件包时,请同时安装:numpymkl依赖项.

If you do not have an entire Python distribution or you do not want to install one, you can download and install a compiled whl package from Christoph Gohlke's webpage. This whl contains numpy and is linked against mkl. When installing this package, you install both: numpy with the mkl dependencies.

所有您需要做的是:

  • 下载正确的whl文件(选择正确的Python版本和32/64文件)
  • 使用Windows+R并通过在cmd
  • 中运行来打开Windows cli
  • 按照cd指示转到下载whl文件的目录
  • 运行pip install numpy‑1.XX.Y+mkl‑cp3X‑cp3Xm‑win_amd64.whl
  • download the correct whl file (Choose the right Python version and 32/64 file)
  • open a Windows cli with Windows+R and by running inside cmd
  • go to the directory where you have downloaded the whl file, with cd instructions
  • run pip install numpy‑1.XX.Y+mkl‑cp3X‑cp3Xm‑win_amd64.whl

例如,命令可以是

pip install numpy‑1.11.3+mkl‑cp35‑cp35m‑win_amd64.whl

您可以对必须编译某些代码的任何软件包执行此操作

You can do it for any package with some code that has to be compiled

这篇关于如何在Windows 64位上为python 2.7安装numpy + mkl?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆