下载Graphlab依赖项get_dependencies()时出现问题 [英] Issues downloading Graphlab dependencies get_dependencies()

查看:70
本文介绍了下载Graphlab依赖项get_dependencies()时出现问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

尝试下载运行 graphlab 所需的依赖项时遇到麻烦.我做了 import graphlab 我得到了以下内容:

 需要的操作:找不到依赖项libstdc ++-6.dll和libgcc_s_seh-1.dll.1.确保用户帐户具有对C:\ Users \ DANISUAR \ AppData \ Local \ Continuum \ Miniconda2 \ envs \ gl-env \ lib \ site-packages \ graphlab的写许可权2.运行graphlab.get_dependencies()下载并安装它们.3.重新启动Python并再次导入graphlab.运行上述功能,即表示您同意以下许可证.* 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()并收到以下错误:

 在[2]中:gl.get_dependencies()运行此功能,即表示您同意以下许可证.* libstdc ++:https://gcc.gnu.org/onlinedocs/libstdc++/manual/license.html* xz:http://git.tukaani.org/?p=xz.git;a=blob;f=COPYING正在下载xz.提取xz.下载gcc-libs.提取gcc-libs.xz:c:\ users \ danisuar \ appdata \ local \ temp \ tmpcdpyzp.xz:无法识别文件格式---------------------------------------------------------------------------CalledProcessError Traceback(最近一次通话)< ipython-input-2-5349b2d86a08>在< module>()中---->1 gl.get_dependencies()C:\ Users \ DANISUAR \ AppData \ Local \ Continuum \ Miniconda2 \ envs \ gl-env \ lib \ site-packages \ graphlab \ dependencies.pyc在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如果cmd为None:540 cmd = popenargs [0]->第541章542返回0543CalledProcessError:命令'['c:\\ users \\ danisuar \\ appdata \\ local \\ temp \\ tmpf1habd \\ bin_x86-64 \\ xz.exe','-d','c:\\ users \\ danisuar \\ appdata \\ local \\ temp \\ tmpcdpyzp.xz']'返回非零退出状态1 

我正在将Anaconda环境与Python 2.7和Windows 7配合使用.

解决方案

第一步是使用

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

使用以下命令在Python终端中再次验证安装:

导入graphlab

I am having trouble when I try to download the dependencies needed to run graphlab. I do import graphlab I get the following:

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

So I try to run graphlab.get_dependencies() and I get the following error:

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

I am using an Anaconda environment with Python 2.7 and Windows 7.

解决方案

The first step is to install all the graph packages using the procedures listed in this link using PIP installer. Verify the successful installation of GraphLab by typing:

import graphlab

The following errors may appear as given in this image:

Then, you can run graphlab.get_dependencies() in Python's terminal.

Verify the installation again in Python's terminal using:

import graphlab

这篇关于下载Graphlab依赖项get_dependencies()时出现问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆