0

I have installed h2o package on anaconda python, however, I get the following error on jupyter notebook:

import h2o
---------------------------------------------------------------------------
ModuleNotFoundError                       Traceback (most recent call last)
<ipython-input-1-accdebc0c7de> in <module>
----> 1 import h2o

ModuleNotFoundError: No module named 'h2o'

From the conda list I can see that the installed h2o version is the following:

conda list h2o
#
# Name                    Version                   Build  Channel
h2o                       3.18.0.2                      0    anaconda

(Is it normal that the build version is 0 here?)

The python version is 3.7.4.

I also tried the following

conda install -c h2oai h2o

and I get

# All requested packages already installed.

Any ideas why the h2o package isn't working? Thanks for your time!

AMC, regarding the anaconda environments, after running:

conda info --envs

I get:

# conda environments:
#
base                  *  C:\Users\ncham***\AppData\Local\Continuum\anaconda3

As far as I can see, there is only one environment...

Community
  • 1
  • 1
nikoscham
  • 33
  • 5
  • 1
    Can you share the contents of the environment? The problem usually is that you added the package to a particular Python installation and are running the program with a different one. – AMC Apr 15 '20 at 21:50
  • I get: `base C:\Users\ncham***\AppData\Local\Continuum\anaconda3` I think is the only environment I have . . . – nikoscham Apr 24 '20 at 10:04
  • 1
    Did you really install the Python version via "conda install h2o-py"? "conda install h2o" only installs the java package as stated here: https://stackoverflow.com/questions/44577923/python-cannot-find-package-h2o-in-anaconda – Hagbard Apr 24 '20 at 11:14
  • I think I installed it with `conda install -c h2oai h2o`. The `conda install h2o-py` fails.. i.e.: `Collecting package metadata (current_repodata.json): done` `Solving environment: failed with initial frozen solve. Retrying with flexible solve.` `Solving environment: failed with repodata from current_repodata.json, will retry with next repodata source.` `Collecting package metadata (repodata.json): done` `Solving environment: failed with initial frozen solve. Retrying with flexible solve.` Maybe we have found something here . . . – nikoscham Apr 28 '20 at 11:23
  • There is a large thread about this issue here (https://github.com/conda/conda/issues/9367). Can you find the solution somewhere in there? – Hagbard May 06 '20 at 08:44

1 Answers1

0
  1. Here is the official guide for installing H2O on Anaconda.
  2. Jump to the Install on Anaconda Cloud part, make sure your Python's version is compatible with h2o module (2.7,3.5 and 3.6), follow the steps and you will be able to import h2o module through py36 channel.
    Hope this answer helps you.
Newcomer
  • 73
  • 7