Installing NumPy and SciPy on 64-bit Windows (with Pip)

how to install numpy in python 3.7 windows 10
pip install scipy
install scipy anaconda
install scipy ubuntu
how to install numpy on mac
install scipy windows
pip install numpy version
pip install numpy, scipy, pandas scikit-learn

I found out that it's impossible to install NumPy/SciPy via installers on Windows 64-bit, that's only possible on 32-bit. Because I need more memory than a 32-bit installation gives me, I need the 64-bit version of everything.

I tried to install everything via Pip and most things worked. But when I came to SciPy, it complained about missing a Fortran compiler. So I installed Fortran via MinGW/MSYS. But you can't install SciPy right away after that, you need to reinstall NumPy. So I tried that, but now it doesn't work anymore via Pip nor via easy_install. Both give these errors:

  • There are a lot of errors about LNK2019 and LNK1120,.
  • I get a lot of errors in the range of C: C2065,C2054,C2085,C2143`, etc. They belong together I believe.
  • There is no Fortran linker found, but I have no idea how to install that, can't find anything on it.
  • And many more errors which are already out of the visible part of my cmd-windows...
  • The fatal error is about LNK1120:

    build\lib.win-amd64-2.7\numpy\linalg\lapack_lite.pyd : fatal error LNK1120: 7 unresolved externals error: Setup script exited with error: Command "C:\Users\me\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\link.exe /DLL /nologo /INCREMENTAL:NO /LIBPATH:C:\BLAS /LIBPATH:C:\Python27\libs /LIBPATH:C:\Python27\PCbuild\amd64 /LIBPATH:build\temp.win-amd64-2.7 lapack.lib blas.lib /EXPORT:initlapack_lite build\temp.win-amd64-2.7\Release\numpy\linalg\lapack_litemodule.obj /OUT:build\lib.win-amd64-2.7\numpy\linalg\lapack_lite.pyd /IMPLIB:build\temp.win-amd64-2.7\Release\numpy\linalg\lapack_lite.lib /MANIFESTFILE:build\temp.win-amd64-2.7\Release\numpy\linalg\lapack_lite.pyd.manifest" failed with exit status 1120

What is the correct way to install the 64-bit versions NumPy and SciPy on a 64-bit Windows machine? Did I miss anything? Do I need to specify something somewhere? There is no information for Windows on these problems that I can find, only for Linux or Mac OS X, but they don't help me as I can't use their commands.

EDIT: The Numpy project now provides pre-compiled packages in the wheel format (package format enabling compiled code as binary in packages), so the installation is now as easy as with other packages.


Numpy (as also some other packages like Scipy, Pandas etc.) includes lot's of C-, Cython, and Fortran code that needs to be compiled properly, before you can use it. This is, btw, also the reason why these Python-packages provide such fast Linear Algebra.

To get precompiled packages for Windows, have a look at Gohlke's Unofficial Windows Binaries or use a distribution like Winpython (just works) or Anaconda (more complex) which provide an entire preconfigured environment with lots of packages from the scientific python stack.

Installation, With pip or Anaconda's conda, you can control the package versions for a Anaconda works on Windows, Mac, and Linux, provides over 1,500 Python/R  In fact, 64 bit Windows is not officially supported by NumPy. So, if you are serious about your project, you need to either consider building on top of Unix-like platforms and inherit external quality assurance, or (on Windows) you need to anticipate issues of various kinds, and do extensive testing on your own.

You can install scipy and numpy using their wheels.

First install wheel package if it's already not there...

pip install wheel

Just select the package you want from http://www.lfd.uci.edu/~gohlke/pythonlibs/#scipy

Example: if you're running python3.5 32 bit on Windows choose scipy-0.18.1-cp35-cp35m-win_amd64.whl then it will automatically download.

Then go to the command line and change the directory to the downloads folder and install the above wheel using pip.

Example:

cd C:\Users\[user]\Downloads
pip install scipy-0.18.1-cp35-cp35m-win_amd64.whl

How to Set up NumPy on a 64 bit Windows OS, These instructions are valid only for Python installed with an official CPython installer, obtained from python.org. 1) Install CPython for AMD64  Install NumPy, SciPy, Matplotlib with Python 3 on Windows Posted on February 25, 2017 by Paul . Updated 26 January 2020. This is a short tutorial about installing Python 3 with NumPy, SciPy and Matplotlib on Windows.

Installing with pip

You can install the numpy and scipy wheels on Windows with pip in one step if you use the appropriate link from Gohlke's Unofficial Windows Binaries (mentioned by sebix) and run the Windows command prompt as Administrator. For example, in Python 3.5, you would simply use something like this:

# numpy-1.9.3+mkl for Python 3.5 on Win AMD64
pip3.5 install http://www.lfd.uci.edu/~gohlke/pythonlibs/xmshzit7/numpy-1.9.3+mkl-cp35-none-win_amd64.whl

# scipy-0.16.1 for Python 3.5 on Win AMD64
pip3.5 install http://www.lfd.uci.edu/~gohlke/pythonlibs/xmshzit7/scipy-0.16.1-cp35-none-win_amd64.whl

Install NumPy, SciPy, Matplotlib with Python 3 on Windows , If you need the 64 bits version of Python, check the Looking for a specific release​? section from the above page. Start the installer and select  python get-pip.py --user. Step 4: Install Numpy in Python using pip on Windows 10/8/7. So, finally, everything is ready and now its time to fire command for installing Numpy, Scipy, Matplotlib, iPython, Jupyter, Pandas, Sympy and Nose. We can either use a single command to install all of them or only one which we want to install particularly.

Best solution for this is to download and install VCforPython2.7 from https://www.microsoft.com/en-us/download/details.aspx?id=44266

Then try pip install numpy

Install Python, Numpy, Matplotlib, Scipy on Windows, If you're computer is running Windows, click on the “64-bit (exe installer)” link in the “Python 3.6” row and the “Windows” column. download  I have been trying to get NumPy for Python 2.7 on Windows 64 bit, but the page http://www.lfd.uci.edu/~gohlke/pythonlibs/ that everyone mentions isn't opening on any

Downloading the binaries for 64-bit from http://www.lfd.uci.edu/~gohlke/pythonlibs/, and installing it directly with pip in this order:

pip install numpy-1.12.0+mkl-cp36-cp36m-win64.whl
pip install scipy-0.18.1-cp36-cp36m-win64.whl
pip install matplotlib-2.0.0-cp36-cp36m-win64.whl

Note that you must place command prompt in the folder where you put the .whl files after downloading them, and you must run it as administrator, worked for me on Windows 10 64-bit now python is up and running.

Installing Python for data analysis, is with Anaconda, a cross-platform (Linux, Mac OS X, Windows) Python distribution for data analytics and scientific computing. After running the installer, the user  pip install numpy-1.12.0+mkl-cp36-cp36m-win64.whl pip install scipy-0.18.1-cp36-cp36m-win64.whl pip install matplotlib-2.0.0-cp36-cp36m-win64.whl Note that you must place command prompt in the folder where you put the .whl files after downloading them, and you must run it as administrator, worked for me on Windows 10 64-bit now python is up and running.

Installation, How do I install the NUMPY package for Python 3.7? I use Windows 10, on a 64-​bit machine. 'py' is the python command line alias for windows that for one reason or another is sometimes set as a default during python installation. '-m' is mod option which allows you to run a library module as a script. 'py -m' instructs python to run the pip module as a script, passing the install and numpy keywords.

How to install the NUMPY package for Python 3.7, This page provides 32- and 64-bit Windows binaries of many scientific open-​source extension Install numpy+mkl before other packages that depend on it. For the NumPy part (that SciPy depends on) there is actually an installer for 64 bit Windows: numpy-1.3.0.win-amd64-py2.6.msi (is direct download URL, 2310144 bytes). Running the SciPy superpack installer results in this. message in a dialog box: Cannot install.

Python Extension Packages for Windows, For openCV and Theano, we will also need Python 2.7 in Visual Studio 2015 (or later). Install the Choose the “Windows x86-64 MSI installer”. Download the  [GUIDE] How to install numpy+scipy in Maya Windows 64 bit? I've seen a lot of queries about getting scipy working in Maya (Windows 64 bit) with a few not 100% reproducible answers. So after a long personal struggle with the problem, here's my solution which will hopefully end the madness for all Windows Maya users:

Comments
  • uhm: lfd.uci.edu/~gohlke/pythonlibs/#numpy ?
  • Thanks, that worked! If only you had answered the question instead of a comment, that would be better for you!
  • Numpy can now be installed on Window. More info in my answer here: stackoverflow.com/a/50953453/872328
  • In case anyone is wondering, you should pip install wheel (and not wheels). Have fun !
  • Are you sure amd64 for python 3.5 32 bit?