-1

I am getting import error: module named numpy. Does this mean i have to install numpy? I have downloaded the new version extracted it into home. I am not sure what else to do. I am using Ubuntu 16.04. I have also tried:

sudo apt-get install python-pip
sudo apt-get install python3-numpy

But the error remains. Can anyone kindly guide me how to solve this

1 Answers1

1

Are you sure that you are not trying to import numpy for Python 3.x into a Python 2.x program? In Ubunto 20.04 and earlier open the terminal and type:

sudo apt install python-numpy  

If this works, it is the logical reverse of this answer.

karel
  • 122,292
  • 133
  • 301
  • 332