I keep getting this error when I run my notebook on Google-Cloud-Data-Proc
import numpy as np
ImportError: ('No module named numpy', <function _parse_datatype_json_string at 0x7fc294e25230>.......
But don't get the error when running locally with same python 2.7
I found that version on my local is
numpy.version.version
'1.11.1'
but on google-data-proc it is older **'1.8.2' **
As mentioned in other answers ImportError: No module named numpy - Google Cloud Dataproc when using Jupyter Notebook I tried this to upgrade
import sys
sys.path.append('/usr/lib/python2.7/dist-packages')
os.system("sudo apt-get install python-pandas -y")
os.system("sudo apt-get install python-numpy -y")
os.system("sudo apt-get install python-scipy -y")
os.system("sudo apt-get install python-sklearn -y")
import pandas
import numpy
import scipy
import sklearn
I still get 1.8.2 version
pip command doesn't have permission on google-data-proc
tried pip with sudo, that too didn't work.
IOError: [Errno 13] Permission denied: '/usr/local/bin/miniconda/lib/python2.7/site-
packages/easy-install.pth'
my-user-name@cluster-name-1-m:~$ sudo pip install numpy
sudo: pip: command not found


