Reply
New Contributor
Posts: 4
Registered: ‎06-02-2016

ImportError: No module named numpy

While using pyspark i m getting following error

 

File "/opt/mapr/spark/spark-1.6.1/python/lib/pyspark.zip/pyspark/mllib/__init__.py", line 25, in <module>
ImportError: No module named numpy

Cloudera Employee
Posts: 461
Registered: ‎08-11-2014

Re: ImportError: No module named numpy

This simply means what it says, that numpy wasn't installed on your cluster's Python installations, and Spark needs it. It sounds like you're not using CDH? if you were you could install the Anaconda parcel to lay down a standard Python distro with all the usual deps like this.

New Contributor
Posts: 2
Registered: ‎12-25-2015

Re: ImportError: No module named numpy

Thanks.

I managed to fix using by applying right permission on following python liabrary path. User was not having permissoin to read following path. Thanks

 

/usr/lib/python2.7/site-packages/ -R

/usr/lib64/python2.7/ -R

New Contributor
Posts: 2
Registered: ‎10-24-2017

Re: ImportError: No module named numpy

Run the below command to import numpy.

> sudo pip install numpy

Announcements