如何在Windows 64位上为python 2.7安装numpy + mkl? [英] How to install numpy+mkl for python 2.7 on windows 64 bit?
问题描述
我已经在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
包含numpy
,并与mkl
链接.安装此软件包时,请同时安装:numpy
和mkl
依赖项.
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 insidecmd
- go to the directory where you have downloaded the
whl
file, withcd
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屋!