【问题标题】:Issues downloading Graphlab dependencies get_dependencies()下载 Graphlab 依赖项 get_dependencies() 的问题
【发布时间】:2021-01-13 06:35:11
【问题描述】:

当我尝试下载运行graphlab 所需的依赖项时遇到问题。我做import 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\DANISUAR\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() 并收到以下错误:

In [2]: gl.get_dependencies()

By running this 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

Downloading xz.
Extracting xz.
Downloading gcc-libs.
Extracting gcc-libs.
xz: c:\users\danisuar\appdata\local\temp\tmpcdpyzp.xz: File format not recognized
---------------------------------------------------------------------------
CalledProcessError                        Traceback (most recent call last)
<ipython-input-2-5349b2d86a08> in <module>()
----> 1 gl.get_dependencies()

C:\Users\DANISUAR\AppData\Local\Continuum\Miniconda2\envs\gl-env\lib\site-packag
es\graphlab\dependencies.pyc in get_dependencies()
 45     prev_cwd = os.getcwd()
 46     os.chdir(dllarchive_dir)
---> 47     subprocess.check_call([xz, '-d', dllarchive_file])
 48     dllarchive_tar = tarfile.open(os.path.splitext(dllarchive_file)[0])
 49     dllarchive_tar.extractall()

C:\Users\DANISUAR\AppData\Local\Continuum\Miniconda2\envs\gl-env\lib\subprocess.pyc in check_call(*popenargs, **kwargs)
539         if cmd is None:
540             cmd = popenargs[0]
--> 541         raise CalledProcessError(retcode, cmd)
542     return 0
543

CalledProcessError: Command '['c:\\users\\danisuar\\appdata\\local\\temp\\tmpf1habd\\bin_x86-64\\xz.exe', '-d', 'c:\\users\\danisuar\\appdata\\local\\temp\\tmpcdpyzp.xz']' returned non-zero exit status 1

我正在使用 Python 2.7 和 Windows 7 的 Anaconda 环境。

【问题讨论】:

    标签: python data-science graphlab


    【解决方案1】:

    第一步是使用 PIP 安装程序使用this link 中列出的过程安装所有图形包。 通过键入以下内容验证 GraphLab 安装是否成功:

    导入图形实验室

    此图中可能会出现以下错误:

    然后,您可以在 Python 的终端中运行graphlab.get_dependencies()

    在 Python 的终端中再次验证安装:

    导入图形实验室

    【讨论】:

    • 请不要包含文字截图。将文本复制/粘贴或转录到帖子本身。
    【解决方案2】:

    GraphLab Create 安装需要 Python 2.7.x 环境和 pip 版本 >= 7 和 Anaconda2 v4.0.0(64 位)。 它在 Graphlab 网站 link

    上这么说

    还有pip版本

    【讨论】:

      【解决方案3】:

      不要从 GraphLab Launcher 打开 Jupyter,而是从开始菜单打开它并以管理员身份运行。然后从 localhost:8888/tree 找到你的文件

      【讨论】:

      • 这是关于缺少的依赖项,而不是关于权限问题。
      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2021-09-22
      • 1970-01-01
      • 2021-12-08
      • 1970-01-01
      • 1970-01-01
      • 2015-11-05
      • 1970-01-01
      相关资源
      最近更新 更多