OSError: Version mismatch while installing h2o?

偶尔善良 提交于 2019-12-02 08:59:54

First try again with the latest version of H2O:

pip3 uninstall h2o
pip3 install http://h2o-release.s3.amazonaws.com/h2o/rel-turchin/9/Python/h2o-3.8.2.9-py2.py3-none-any.whl

If you run into the same issue, then do the following:

It looks like you already have a development version of H2O running on your machine (3.8.2.99999). You will need to kill that H2O cluster that is running the dev version. You can do that one of the following ways:

  • Navigate to the H2O Flow web GUI (if you are running locally, that would be at localhost:54321 by default). In the GUI, click on the Admin menu item and then click on "Shut Down."
  • Kill the Java process that is running the H2O cluster.

Once you have killed the existing H2O cluster, then reinstall the h2o module, and start the H2O cluster directly from Python as follows:

import h2o
h2o.init()

Since at this point, there won't be an existing H2O cluster running, the h2o Python module will start one up for you (and since you started it from Python, it won't get confused about versions).

Sometimes what happens is that people download the H2O jar file separately, start an H2O cluster and then install a different version of the R or Python package, which causes the mismatch error. I think this may be the cause of your issue. Usually starting an H2O cluster is as simple as import h2o; h2o.init().

In order to use H2O, need to update the h20 jar file to python version. 

Delete H20 versions on disk and do a fresh install.. Then pip install h20.

Or follow these instructions:

http://www.h2o.ai/download/h2o/python

If you have the h2o window opened @ http://localhost:54321 , make sure you shut it down (Admin->shutDown) before you import into python or python3 since they create conflicts.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!