When starting Jupyter Notebook on Google Dataproc, importing modules fails. I have tried to install the modules using different commands. Some examples:
import os
os.sytem("sudo apt-get install python-numpy")
os.system("sudo pip install numpy") #after having installed pip
os.system("sudo pip install python-numpy") #after having installed pip
import numpy
None of the above examples work and return an import error:
When using command line I am able to install modules, but still the import error remains. I guess I am installing modules in a wrong location.
Any thoughts?
Did you try: pip install ipython[numpy]
Try
conda install numpy
as Google's jupyter init script is using conda. I personally prefer to have my own init scripts so I can have more control.I found a solution.
If any one has a more elegant solution, please let me know.