Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

No module named 'bokeh.plotting'; bokeh is not a package

Tags:

python

bokeh

I am trying to import curdoc. I have tried from bokeh.io import curdoc and from bokeh.plotting import curdocbut neither works.

I've tried pip install -U bokeh and pip install bokeh but it still returns no module named 'bokeh.plotting; 'bokeh' is not a package'. What is happening?

I have reverted back to 0.12.1 currently.

like image 697
machump Avatar asked Jan 30 '18 18:01

machump


1 Answers

Check your folder if any of the program named bokeh.py please rename it because it's picking bokeh.plotting from your program bokeh.py not from the library.

like image 182
Anmol Kankariya Avatar answered Nov 15 '22 01:11

Anmol Kankariya