Modulenotfounderror: no module named numpy ( Solved )

Modulenotfounderror_ no module named numpy ( Solved )

Numpy is a python module that allows you to create a numpy array. To do so It has many inbuilt functions. But while using it you may get the error like Modulenotfounderror: no module named numpy. In this entire tutorial, you will know how to solve these issues on various platforms.

What is ModuleNotFoundError?

If you are using some module( X ) while coding and if you are getting the error ModuleNotFoundError : no module named ‘X’ then the python interpreter is clearly stating that your code requires module X to be installed. To remove this error you just open your command prompt or terminal and install the module.

Why does Modulenotfounderror: no module named numpy occurs?

Most of cases You will get this no module named numpy error when the interpreter does not find the numpy package installed in your system. In every platform like command prompt, terminal, Anaconda, colab , Jupyter, and PyCharm you will get the same error if numpy is not installed.

Let’s check the version of numpy in the terminal. You will not get the error if it is installed but you will get the error Modulenotfounderror: no module named numpy if it is not installed in the system.

import numpy


ModuleNotFoundError in Numpy
ModuleNotFoundError in Numpy

How to solve the Modulenotfounderror: no module named numpy Error?

To solve the no module named numpy error you have to install the numpy python package in your system. Developers uses many platforms for coding therefore I will explain to you how to install the numpy module on each platform.

Command Prompt

Open your command prompt and using the pip command type the below command to install it.

For python 3. xx

pip3 install numpy

For python 2. xx

pip install numpy

Jupiter Notebook

If you are using Jupyter Notebook then you have to put the  ” ! ” before the pip command to install any module.

!pip3  install numpy


Mostly most of the machine learning libraries are already installed in Google colab. So numpy must be installed. But in case you are getting the no module named numpy error then install the numpy module using the below command.

!pip3  install numpy


If you are using anaconda prompt to install the numpy module then use the below command.

conda install numpy


Most fast developer uses Pycharm. If you are one of them then you can install the numpy module by Going to File > Settings > Project Interpreter and clicking on the plus sign to find and install the Numpy module.


Mostly you will get the Modulenotfounderror for the specific package when it is not installed in your system. If you are getting the no module named numpy error then the above method will solve it.

I hope you have liked this tutorial. If you have any queries then you can contact us for more help.

Join our list

Subscribe to our mailing list and get interesting stuff and updates to your email inbox.

Thank you for signup. A Confirmation Email has been sent to your Email Address.

Something went wrong.

Meet Sukesh ( Chief Editor ), a passionate and skilled Python programmer with a deep fascination for data science, NumPy, and Pandas. His journey in the world of coding began as a curious explorer and has evolved into a seasoned data enthusiast.
Thank you For sharing.We appreciate your support. Don't Forget to LIKE and FOLLOW our SITE to keep UPDATED with Data Science Learner