当我尝试导入h2o时,我被告知该包不存在。当我尝试安装它时,它告诉我它已经存在。我试图将其从计算机中清除并重新安装无效。在这一点上我能想到的只是一些环境变量。Python无法在anaconda中找到包h2o
(C:\Users\Lanier\Anaconda2) C:\Users\Lanier>python
Python 2.7.12 |Anaconda custom (64-bit)| (default, Jun 29 2016, 11:07:13) [MSC v.1500 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
Anaconda is brought to you by Continuum Analytics.
Please check out: http://continuum.io/thanks and https://anaconda.org
>>> import h2o
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named h2o
>>> quit()
(C:\Users\Lanier\Anaconda2) C:\Users\Lanier>conda install h2o
Fetching package metadata ...........
Solving package specifications: .
# All requested packages already installed.
# packages in environment at C:\Users\Lanier\Anaconda2:
#
h2o 3.10.0.9 0
(C:\Users\Lanier\Anaconda2) C:\Users\Lanier>
也许你已经安装了两条蟒蛇? – leoxs
我这样做。但Python中有2.7,我相信anaconda2是2.7。当我回家的时候我会检查它。我需要激活我的Python 3环境中获得的Python 3 – mlanier
我有同样的问题,因为蟒蛇安装了一个新的Python – leoxs