Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to install numpy on windows using pip install?

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

RuntimeError: Broken toolchain: cannot link a simple C program 

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.

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?

Edit: 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)

like image 713
DartLenin Avatar asked Apr 07 '15 19:04

DartLenin


People also ask

Can numpy install pip?

NumPy can be installed with conda , with pip , with a package manager on macOS and Linux, or from source.


2 Answers

Check installation of python 2.7 than install/reinstall pip which described here than open command line and write

pip install numpy 

or

pip install scipy 

if already installed try this

pip install -U numpy 
like image 163
acs Avatar answered Oct 12 '22 06:10

acs


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.

Two options:

  • 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).
like image 34
Akhilesh Shukla Avatar answered Oct 12 '22 06:10

Akhilesh Shukla