如何使用pip install在Windows上安装numpy? [英] How to install numpy on windows using pip install?

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

问题描述

我想使用pip install numpy命令安装numpy,但出现以下错误:

I want to install numpy using pip install numpy command but i get follwing error:

RuntimeError: Broken toolchain: cannot link a simple C program

我正在使用Windows 7 32bit,python 2.7.9,pip 6.1.1和某些MSVC编译器.我认为它使用的是Visual C ++ 2010 Express中的编译器,但实际上我不确定是哪个版本,因为我安装了多个Visual Studio.

I'm using windows 7 32bit, python 2.7.9, pip 6.1.1 and some MSVC compiler. I think it uses compiler from Visual C++ 2010 Express, but actually I'm not sure which one because I have several visual studio installations.

我知道有一些用于Windows的预构建软件包,但是我想弄清楚是否有某种方法可以通过键入pip install numpy来实现?

I know that there are prebuilt packages for windows but I want to figure out if there is some way to do it just by typing pip install numpy?

我认为可能还有其他必须在使用之前进行编译的软件包,因此不仅涉及numpy.我想用我的编译器解决问题,因此我可以轻松地安装任何其他类似的软件包,而无需搜索预构建的软件包(并希望有一些完整的软件包)

I think that there could be other packages which must be compiled before usage, so it's not only about numpy. I want to solve the problem with my compiler so I could easily install any other similar package without necessity to search for prebuilt packages (and hope that there are some at all)

推荐答案

安装扩展模块可能是pip的问题.这就是conda存在的原因. conda是开源的BSD许可的跨平台程序包管理器.它可以轻松安装NumPy.

Installing extension modules can be an issue with pip. This is why conda exists. conda is an open-source BSD-licensed cross-platform package manager. It can easily install NumPy.

两个选项:

  • 此处
  • 安装Anaconda
  • 此处安装Miniconda,然后转到命令行并键入conda install numpy(确保您的PATH包括将conda安装到的位置.)
  • Install Anaconda here
  • Install Miniconda here and then go to a command-line and type conda install numpy (make sure your PATH includes the location conda was installed to).

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

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