holoview.extension('bokeh') - 无法导入扩展

holoview.extension('bokeh') - cannot import extension

我想测试 HoloViews,但遇到了几个错误。 我安装了两次(建议的不同设置 here)。我使用了 !pip install holoviews!pip install 'holoviews[recommended]'.

安装时我得到:

Requirement already satisfied: holoviews in /usr/local/lib/python2.7/dist-packages

Requirement already satisfied: param>=1.3.2 in /usr/local/lib/python2.7/dist-packages (from holoviews)

Requirement already satisfied: numpy>=1.0 in /usr/local/lib/python2.7/dist-packages (from holoviews)

/usr/local/lib/python2.7/dist-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:318: SNIMissingWarning: An HTTPS request has been made, but the SNI (Subject Name Indication) extension to TLS is not available on this platform. This may cause the server to present an incorrect TLS certificate, which can cause validation failures. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/en/latest/security.html#snimissingwarning.
  SNIMissingWarning

/usr/local/lib/python2.7/dist-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:122: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/en/latest/security.html#insecureplatformwarning.
  InsecurePlatformWarningenter

所以,我可以导入 HoloViews(它作为版本 1.6.2 在已安装包列表中),但是 holoviews.extension('bokeh') 不起作用。所以我不能使用它。

我正在使用

对于我做错了什么或我可以做些什么来解决这个问题的任何提示,我将不胜感激。我不太熟悉安装软件包。如果您需要更多信息,请告诉我。我花了几个小时 searching/googling 没有结果的答案。

非常感谢。

包含 pip install bokeh,我发现 pip install holoviews[recommended] 在干净的 Python 2 环境中正常工作。这将安装最新的 HoloViews 版本 1.9.2。

看起来您的系统上可能安装了较旧的 holoviews,因此我建议您在干净的 Python 2 环境中重试。或者,尝试通过 运行ning pip install holoviews[recommended]==1.9.2 固定版本。请注意,您还需要散景版本 0.12.13,因此请确保 运行 pip install bokeh==0.12.13