Adding python libraries to google datalab environment

喜你入骨 提交于 2019-12-30 09:45:35

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!