2016-08-19 2 views
3

を持っていない:エラーが依存関係を作成します:はAttributeErrorは: 'モジュール' オブジェクトは、次のことが発生し、 "インポートgraphlab" には何属性 '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からの返答を得ました。次のように問題が解決されました:

"このエラーは、Gykがインストールしようとしている間に、iPythonノートブックなどの他のPythonプロセスがバックグラウンドで実行されているため、GraphLab Createが壊れてインストールされている可能性があります。

  1. 完全にシャットダウンし、システムを再起動して何のスタートにPythonやGraphLabの作成に使用するアプリケーションやプロセスを実行していない

  2. GraphLabを再度作成しインストールしてください、好ましくGraphLabを使用して:、次の手順を実行してください。ランチャーを作成:https://turi.com/download/install-graphlab-create.html "

2

IPythonとpythonコマンドラインの両方で依存関係エラーが発生しました。私はGraphLab Createランチャーを通してインストールする運がなかった。私は、インストールを修復するには、次のコマンドを実行する必要がありました(私の環境名は、「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()メソッドを実行すると、モジュールが検出され、必要な依存関係がインストールされます。これ以降、「graphlabをインポートする」という呼び出しは成功します。

関連する問題