當我嘗試導入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