更新GraphLab创建依赖项时出错:AttributeError:' module'对象没有属性' get_dependencies'

时间:2016-08-19 21:46:52

标签: graphlab

在"导入graphlab"发生以下情况:

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

我尝试运行&#34; graphlab.get_dependencies()&#34;,但得到了以下内容:

AttributeError Traceback (most recent call last)

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

----> 1 graphlab.get_dependencies()

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

有谁知道如何解决这个问题?

2 个答案:

答案 0 :(得分:2)

我在IPython和python命令行中都遇到了依赖项错误。我没有通过GraphLab Create启动器安装任何运气。我必须运行以下命令来修复安装(我的环境名称为&#34; gl-env&#34;。将此名称更改为您的环境):

activate gl-env

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

然后我打开了一个python命令行并运行:

import graphlab
graphlab.get_dependencies()

注意运行最后一个import命令时,我在OP中得到错误,但是在运行.get_dependencies()方法之后,它找到了模块并安装了必要的依赖项。随后调用&#34;导入graphlab&#34;在此之后成功。

答案 1 :(得分:0)

得到了Turi对此问题的回复。以下解决了这个问题:

“此错误很可能是由于其他Python进程(例如iPython笔记本)在GLC尝试安装时在后台运行而导致GraphLab Create安装损坏。要解决此问题,请执行以下操作:< / p>

  1. 完全关闭并重启系统。不要启动任何使用Python或GraphLab Create的应用程序或进程。

  2. 尝试再次安装GraphLab Create,最好使用GraphLab Create Launcher:https://turi.com/download/install-graphlab-create.html