问题
I'm using google datalab on google cloud platform. Worked great on the first try and I love how easy it is to now run a jupyter notebook server in the cloud (faster than starting up a localhost server). It's fantastic.
But now I want to install python libraries not included in the basic datalab environment (specifically I need the Bokeh plotting library).
So I opened a google cloud shell from the google cloud console where I manage this jupyter notebook instance, installed miniconda and then the bokeh library. Everything ran without error (e.g. bokeh installs several dependencies along the way), but my jupyter notebook on datalab (which can import other libraries like numpy) still gives me a "no module named bokeh.plotting" error.
Any ideas? Thanks in advance.
回答1:
You can do this inside a notebook:
%%bash
pip install bokeh
来源:https://stackoverflow.com/questions/33174293/adding-python-libraries-to-google-datalab-environment