0

我想测试 HoloViews,但遇到了几个错误。我安装了两次(这里建议的不同设置)。我用!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') 不起作用。所以我不能使用它。

我在用着

  • Python 2.7.6
  • Jupyter 笔记本 5.1.0
  • 散景 0.12.9
  • Numpy 1.13.1
  • 熊猫 0.20.3

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

非常感谢。

4

1 回答 1

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

于 2018-01-11T16:46:30.497 回答