2016-08-19 31 views
3

在 「進口graphlab」 會出現以下情況:錯誤更新GraphLab創建的依賴關係:AttributeError的: '模塊' 對象有沒有屬性 'get_dependencies'

ACTION REQUIRED: Dependencies libstdc++-6.dll and libgcc_s_seh-1.dll not found. 

1. Ensure user account has write permission to C:\Users\<user>\AppData\Local\Continuum\Miniconda2\envs\gl-env\lib\site-packages\graphlab 
2. Run graphlab.get_dependencies() to download and install them. 
3. Restart Python and import graphlab again. 

By running the above function, you agree to the following licenses. 

* libstdc++: https://gcc.gnu.org/onlinedocs/libstdc++/manual/license.html 
* xz: http://git.tukaani.org/?p=xz.git;a=blob;f=COPYING 

我試圖運行 「graphlab.get_dependencies()」,卻得到了如下:

AttributeError Traceback (most recent call last) 

<ipython-input-3-9e64085fb919> in <module>() 

----> 1 graphlab.get_dependencies() 

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

有沒有人知道如何解決這個問題?

回答

0

得到Turi對此問題的回覆。下面的問題解決了這個問題:

「這個錯誤很可能是由於其他Python進程損壞了GraphLab Create的安裝,例如iPython筆記本,在GLC試圖安裝時在後臺運行。 ,請執行下列操作:

  1. 完全關閉並重新啓動系統後沒有開始使用Python或GraphLab創建的任何應用程序或進程

  2. 嘗試安裝GraphLab再次創建,最好使用GraphLab。創建啓動器:https://turi.com/download/install-graphlab-create.html

2

我得到了IPython和python命令行中的依賴性錯誤。我沒有通過GraphLab Create Launcher安裝任何運氣。我不得不運行下面的命令來修復安裝(我的環境名稱爲「GL-ENV」更改這個名字您的環境。):

activate gl-env 

python -m ipykernel install --user --name gl-env --display-name "Python (gl-env) 

然後我打開一個Python的命令行和運行:

import graphlab 
graphlab.get_dependencies() 

注意運行這個最後一個導入命令時,我得到了OP中的錯誤,但是在運行.get_dependencies()方法後,它找到了模塊並安裝了必要的依賴關係。此後,後續調用「import graphlab」成功。

相關問題