How to install specific versions of H2O

家住魔仙堡 提交于 2021-02-10 11:52:26

问题


I need to install an older version of H2O because model loading doesn't work even if the versions are just one apart (3.26.0.2 vs. 3.26.0.3). I'm struggling to find a page from which I can find the download links. Why doesn't it exist? All software have an archive or older versions page for this. I also tried playing with the link to current version but no luck as it doesn't have a pattern you could guess. So how can I install H2O 3.26.0.2 in Python (pip)?

Looked all over the web and documentation

model = h2o.load_model("H2O.model_name.zip")

  Error: Found version 3.26.0.2, but running version 3.26.0.3
  Request: POST /99/Models.bin/
    data: {'dir': 'H2O.model_name.zip'}```

回答1:


The Changes.md file is the easiest place to look for links to where you can download every version. Just search for the version you want (e.g. "3.26.0.2") and you will see the URL there.

Click on the link and it will bring you to the download page for that version and you can click on the "Install in Python" tab which will show some code like this that you can copy/paste into your terminal:

# The following command removes the H2O module for Python.
pip uninstall h2o

# Next, use pip to install this version of the H2O Python module.
pip install http://h2o-release.s3.amazonaws.com/h2o/rel-yau/2/Python/h2o-3.26.0.2-py2.py3-none-any.whl

The URLs are "predictable" but you have to know the name of the release as well as the version number to correctly guess the URL.



来源:https://stackoverflow.com/questions/57749892/how-to-install-specific-versions-of-h2o

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