python – Import Error: No module named numpy

python – Import Error: No module named numpy

You can simply use

pip install numpy

Or for python3, use

pip3 install numpy

Support for Python 3 was added in NumPy version 1.5.0, so to begin with, you must download/install a newer version of NumPy.

Or simply using pip:

python3 -m pip install numpy

python – Import Error: No module named numpy

Installing Numpy on Windows

  1. Open Windows command prompt with administrator privileges (quick method: Press the Windows key. Type cmd. Right-click on the
    suggested Command Prompt and select Run as Administrator)
  2. Navigate to the Python installation directorys Scripts folder using the cd (change directory) command. e.g. cd C:Program Files (x86)PythonXXScripts

This might be: C:Users\AppDataLocalProgramsPythonPythonXXScripts or C:Program Files (x86)PythonXXScripts (where XX represents the Python version number), depending on where it was installed. It may be easier to find the folder using Windows explorer, and then paste or type the address from the Explorer address bar into the command prompt.

  1. Enter the following command: pip install numpy.

You should see something similar to the following text appear as the package is downloaded and installed.

Collecting numpy
  Downloading numpy-1.13.3-2-cp27-none-win32.whl (6.7MB)  
  100% |################################| 6.7MB 112kB/s
Installing collected packages: numpy
Successfully installed numpy-1.13.3

Leave a Reply

Your email address will not be published.