下载Graphlab依赖项的问题get_dependencies()

时间:2016-08-16 19:49:09

标签: python data-science graphlab

当我尝试下载运行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环境。

3 个答案:

答案 0 :(得分:9)

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

  

导入graphlab

此图像中可能会显示以下错误:

Image

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

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

  

导入graphlab

答案 1 :(得分:0)

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

上说了这一点

还有pip版本<10.x,我使用pip 18.x安装Graphlab,出现了掺杂错误。

答案 2 :(得分:-1)

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

中找到你的文件