Installing NumPy

NoteQuestion

Does NumPy come with the official Python installation file?

TipAnswer

No, it does not. You need to install it separately using the package manager pip.

NoteQuestion

I am an Anaconda user: do I need to install NumPy ‘separately’?

TipAnswer

No, you do not. NumPy is included in ‘base,’ the default environment of Anaconda. However, if you create a new environment, you need to install NumPy — and all the other modules you need — with the package manager conda.

NoteQuestion

How do I install NumPy?

TipAnswer

The easiest way is using the command line. Anaconda users run $ conda install numpy scipy, whereas Python official release users run $ pip install numpy scipy. Anaconda users can also install the modules they need from within Anaconda-Navigator.