Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

No module named numpy

Tags:

python

numpy

I have the following programs installed

  1. python 2.7 installed
  2. Numpy-1.6.2-python2.7
  3. Matplotlib-1.1.1-py2.7

I believe numpy has been installed properly because when I type import numpy in python interpreter, it doesn't give me an error. I can also check the version of the numpy installed.

I am getting the following error in my code on this line

import numpy as np

"Exceptions.ImportError:No module named numpy"

Does anyone know a solution to this problem? Thanks!

like image 387
Telenoobies Avatar asked Nov 05 '12 17:11

Telenoobies


People also ask

How do I fix No module named numpy?

The Python "ModuleNotFoundError: No module named 'numpy'" occurs when we forget to install the numpy module before importing it or install it in an incorrect environment. To solve the error, install the module by running the pip install numpy command.

Why is numpy not found?

Python numpy not found or no module named 'numpy' error appears when the module is not installed in the current working environment. Install the module using pip or conda to fix this issue. but make sure that you have installed it in current working environment.


1 Answers

in terminal:

sudo apt-get install python-numpy

like image 126
david Avatar answered Oct 16 '22 09:10

david