Installing NumPy and SciPy on 64-bit Windows (with Pip)
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.
Installing numpy with pip on windows 10 for python 3.7
Installing NumPy on Windows is a common problem if you don't have the right build setup. Instead, I always go to Christoph Gohlke's website to download the wheels you can install for your computer. Christoph generously builds the libraries himself with the right build environment and he posts it on his website.
Newer Instructions - For older instructions, please scroll down
First, install pipwin
from PyPI which will install a utility that acts like pip
but it will download the actual package you're interested in from his website, then use pipwin install
to install the package you want.
First do:
pip install pipwin
When that's installed, you can then do:
pipwin install numpy
This will install the latest version of NumPy on your system. This way you don't have to specifically search for the version of NumPy that is for your specific version of Python.
Older instructions
Go to the NumPy section: https://www.lfd.uci.edu/~gohlke/pythonlibs/#numpy then download the version for 3.7 that is compatible with your version of Python (2 or 3 and 32-bit or 64-bit). For example, the filename numpy‑1.14.5+mkl‑cp37‑cp37m‑win_amd64.whl
is for NumPy 1.14.5, Python 3.7 - 64 bit. You can pick out which version of NumPy and which version of the Python interpreter and bit version you need in the filename.
Doing this never requires you to build NumPy yourself or install the required compiler as opposed to installing NumPy through PyPI. You can just download the wheel and install it yourself. Assuming you've already downloaded it, just do:
pip install numpy‑1.14.5+mkl‑cp37‑cp37m‑win_amd64.whl
... assuming the wheel is in the directory you're currently in.
How do I install SciPy on 64 bit Windows?
I haven't tried it, but you may want to download this version of Portable Python. It comes with Scipy-0.7.0b1 running on Python 2.5.4.
How can I install NumPy on Windows using 'pip install'?
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).
Install NumPy for Windows 10 and Python 3.4.2 64 bit
In order to use Numpy with Windows, I'm using Canopy Editor which have a very good library. You can upload Numpy from that lib and install it.
After that, Numpy works very well !
You can also download Visual Studio Code which have also a library with Numpy
Related Topics
How to Flatten a List of Lists/Nested Lists
How to Use a Multiprocessing Queue in a Function Called by Pool.Imap
Will Ordereddict Become Redundant in Python 3.7
Read Unicode Characters from Command-Line Arguments in Python 2.X on Windows
Python Multiple Inheritance Passing Arguments to Constructors Using Super
Python Runtimewarning: Overflow Encountered in Long Scalars
Python Replace String Pattern with Output of Function
Site Matching Query Does Not Exist
How to Efficiently Process a Numpy Array in Blocks Similar to Matlab's Blkproc (Blockproc) Function
Ioerror: [Errno 22] Invalid Mode ('R') or Filename: 'C:\\Python27\Test.Txt'
Positional Argument Follows Keyword Argument
Why Isn't the Regular Expression's "Non-Capturing" Group Working
Axes Class - Set Explicitly Size (Width/Height) of Axes in Given Units
How to Unimport a Python Module Which Is Already Imported
Nltk Named Entity Recognition to a Python List