holoview.extension('散景') - 无法导入扩展名

时间:2018-01-11 14:28:47

标签: python python-2.7 jupyter-notebook bokeh holoviews

我想测试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('散景')不起作用。所以我无法使用它。

我正在使用

  • Python 2.7.6
  • Jupyter Notebook 5.1.0
  • Bokeh 0.12.9
  • Numpy 1.13.1
  • Pandas 0.20.3

我很感激任何关于我做错了什么或者我能做些什么来解决这个问题的提示。我对安装软件包并不熟悉。如果您需要更多信息,请告诉我们。我花了几个小时搜索/谷歌搜索没有结果的答案。

非常感谢。

1 个答案:

答案 0 :(得分:0)

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

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