简体   繁体   English

在 anaconda python 中找不到模块 h2o

[英]Module h2o not found in anaconda python

I have installed h2o package on anaconda python, however, I get the following error on jupyter notebook:我已经在 anaconda python 上安装了 h2o package,但是,我在 jupyter 笔记本上收到以下错误:

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 列表中我可以看到安装的 h2o 版本如下:

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

(Is it normal that the build version is 0 here?) (这里构建版本为0正常吗?)

The python version is 3.7.4. python 版本为 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?任何想法为什么 h2o package 不起作用? Thanks for your time!谢谢你的时间!

AMC, regarding the anaconda environments, after running: AMC,关于anaconda环境,运行后:

 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...据我所知,只有一个环境......

  1. Here is the official guide for installing H2O on Anaconda.这是在 Anaconda 上安装H2O的官方指南。
  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.跳转到Anaconda 云上的安装部分,确保您的 Python 版本与 h2o 模块(2.7、3.5 和 3.6)兼容,按照步骤操作,您将能够通过 py36 通道导入 h2o 模块。
    Hope this answer helps you.希望这个答案对您有所帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM