Python cannot find module h2o -
i have python 2 , 3 on debian (via apt
) , installed h2o following official instructions (thereby using pip3
instead of pip
when executing install commands).
afterwards, python seems fine:
$ python python 3.6.1 |anaconda 4.4.0 (64-bit)| (default, may 11 2017, 13:09:58) [gcc 4.4.7 20120313 (red hat 4.4.7-1)] on linux
but when try use h2o, fails:
>>> import h2o traceback (most recent call last): file "<stdin>", line 1, in <module> modulenotfounderror: no module named 'h2o'
what i've tried far – without solving issue:
- conda install h2o -> install ok (verified "conda list")
- conda install h2o-py:
error:
unsatisfiableerror: following specifications found in conflict: - h2o-py -> python 2.7* -> openssl 1.0.1* - python 3.6*
- following "second" official install instructions h2o found -> install without errors, problem not resolved.
- seems have many python envs installed - not sure if causes problem:
output of whereis python
python: /usr/bin/python3.6m /usr/bin/python3.5m /usr/bin/python3.6 /usr/bin/python /usr/bin/python3.5 /usr/bin/python2.7 /usr/lib/python3.6 /usr/lib/python3.5 /usr/lib/python2.6 /usr/lib/python2.7 /etc/python3.6 /etc/python /etc/python3.5 /etc/python2.7 /usr/local/lib/python3.6 /usr/local/lib/python3.5 /usr/local/lib/python2.7 /usr/include/python3.6m /usr/include/python3.5m /usr/include/python2.7 /usr/share/python /home/mac/apps/anaconda3/bin/python3.6m /home/mac/apps/anaconda3/bin/python3.6m-config /home/mac/apps/anaconda3/bin/python3.6 /home/mac/apps/anaconda3/bin/python /home/mac/apps/anaconda3/bin/python3.6-config /usr/share/man/man1/python.1.gz
how can let python find h2o? if fix includes purging python2, happy, afraid of cutting dependencies.
this doesn't answer question, use pip within conda , works nicely:
$ source activate yourenv $ pip
- make sure it's right pip
- go www.h2o.ai/download
- choose latest stable release
- click "install in python"
- cut , paste pip command
for example:
$ pip install http://h2o-release.s3.amazonaws.com/h2o/rel-weierstrass/2/python/h2o-3.14.0.2-py2.py3-none-any.whl
start python , import h2o.
Comments
Post a Comment