【问题标题】:Error updating GraphLab Create dependencies: AttributeError: 'module' object has no attribute 'get_dependencies'更新 GraphLab 创建依赖项时出错:AttributeError:“模块”对象没有属性“get_dependencies”
【发布时间】:2017-10-23 01:21:10
【问题描述】:

在“导入 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

我尝试运行“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'

有人知道怎么解决吗?

【问题讨论】:

    标签: graphlab


    【解决方案1】:

    我在 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() 方法后,它会找到模块并安装必要的依赖项。此后对“import graphlab”的后续调用成功。

    【讨论】:

      【解决方案2】:

      收到了 Turi 对该问题的回复。以下解决了问题:

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

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

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

      【讨论】:

        猜你喜欢
        • 2018-12-10
        • 1970-01-01
        • 1970-01-01
        • 2010-11-18
        相关资源
        最近更新 更多