python - 尝试运行 bokeh-server 时出错

标签 python python-2.7 ubuntu-14.04 bokeh

我最近安装了最新版本的 bokeh,并尝试在 Ubuntu 14.04 中从终端运行服务器。我收到以下错误:

user@host:~$ bokeh-server
Traceback (most recent call last):
 File "/usr/local/bin/bokeh-server", line 3, in <module>
 import bokeh.server
 File "/usr/local/lib/python2.7/dist-packages/bokeh/server/__init__.py", line 11, in <module>
 from bokeh.server.utils.reload import robust_reloader
 File "/usr/local/lib/python2.7/dist-packages/bokeh/server/utils/reload.py", line 8, in <module>
 from werkzeug.serving import _iter_module_files
 ImportError: cannot import name _iter_module_files

有什么想法可能导致这种情况吗?

最佳答案

Bokeh 服务器似乎与新版本的“werkzeug”不兼容。

要解决此问题,请替换该行

from werkzeug.serving import _iter_module_files

from werkzeug._reloader import _iter_module_files

在你的“reload.py”中(在你的情况下位于“/usr/local/lib/python2.7/dist-packages/bokeh/server/utils/”)。

关于python - 尝试运行 bokeh-server 时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28241579/

相关文章:

python - 使用动态规划求子集和

python - 在 MediaLive 中更改输入 URL

python - 我如何用Python中的语音识别检测一个词

java - 使用 Python 创建和实现接口(interface)?

python - SQLAlchemy 中使用 keys() 的列名顺序

python /破折号 : Multiple graphs inside a single subplot of the the figure

python - 为什么 django 按错误的字段分组?注释()

ubuntu - HTK 3.4.1 在 Ubuntu 14.04 上安装错误

elasticsearch - Logstash 没有在 Elasticsearch 上创建索引

python - 从 windows 浏览器访问 ubuntu 虚拟机主机