简体   繁体   English

使用Python 2.7在64位Windows 8.1上安装Numpy

[英]Installing Numpy on 64bit Windows 8.1 with Python 2.7

I am trying to install Numpy on Python 2.7 and I am using Windows 8.1. 我正在尝试在Python 2.7上安装Numpy,并且正在使用Windows 8.1。 When I run Numpy from this link it says, "Python 2.7 required, which was not found in the registry ". 当我从此链接运行Numpy时,它说:“需要Python 2.7,在注册表中找不到”。 How can resolve this issue, I already installed Python 2.7? 我已经安装了Python 2.7,如何解决此问题?

For Windows, you should check out Chris Gohlke's page: http://www.lfd.uci.edu/~gohlke/pythonlibs 对于Windows,您应该查看Chris Gohlke的页面: http ://www.lfd.uci.edu/~gohlke/pythonlibs

He has some Numpy builds there for Python 2.7. 他在那里有一些适用于Python 2.7的Numpy构建。

You can first install wheel using pip. 您可以先使用pip安装滚轮。

pip install wheel

Then download the .whl file for Numpy from Chris Gohlke's page . 然后从Chris Gohlke的页面下载Numpy的.whl文件。

Then go to the directory where you downloaded the package.whl file in cmd and do the following 然后转到在cmd中下载package.whl文件的目录,然后执行以下操作

pip install package_you_downloaded.whl

I experienced a similar broken toolchain error while installing Numpy. 安装Numpy时,我遇到了类似的断开的工具链错误。 You can check it here . 您可以在这里检查。

I changed to anaconda a while ago and in my mind its the best and most dynamic package manager for all platforms. 我前一阵子改用anaconda,在我看来,它是所有平台上最好,最有活力的软件包管理器。 http://docs.continuum.io/anaconda/install.html http://docs.continuum.io/anaconda/install.html

安装pip之后的正确命令是:

python -m pip install numpy

You should use pip to install Numpy and any other librarys 您应该使用pip安装Numpy和其他任何库

check this for how to install pip 检查一下如何安装点子

after installing, go to your command line and enter 安装后,转到命令行并输入

pip install numpy

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM