2017-06-29 63 views
0

我想在DSx筆記本中使用graphlab。 我已經安裝了模塊: PIP安裝--user --upgrade --no-緩存目錄https://get.graphlab.com/GraphLab-Create/2.1/my_license/GraphLab-Create-License.tar.gzDSx - graphlab模塊

但運行import graphlab失敗,錯誤:

AttributeErrorTraceback (most recent call last) <ipython-input-8-18109c918415> in <module>() ... 
----> 4 import graphlab 

/gpfs/fs01/user/sc9b-86b94c11f9c6d7-2ca36d25e590/.local/lib/python2.7/site-packages/graphlab/__init__.py in <module>() 
    48 from graphlab.util import set_runtime_config 
    49 
---> 50 import graphlab.connect as _mt 
    51 import graphlab.connect.aws as aws 
    52 from . import visualization 

AttributeError: 'module' object has no attribute 'connect' 

我缺少什麼?任何提示? 謝謝

回答

0

我懷疑安裝過程中出現問題。要從pip安裝嘗試獲得更多輸出,請執行

!cat $LOG_FILE 

在相同的筆記本內核中。也許有錯誤信息可以解釋問題。如果內核不再運行,您仍然可以在$SERVICE_HOME/logs/中找到日誌文件。或者,您可以用!rm -rf ~/.local刪除用戶安裝的Python軟件包,重新啓動內核,然後重新安裝。