2016-08-16 36 views
4

我在嘗試下載運行graphlab所需的依賴關係時遇到了問題。我不import graphlab我得到以下幾點:下載Graphlab依賴的問題get_dependencies()

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

回答

6

第一步是使用PIP安裝程序使用this link中列出的程序安裝所有圖形包。 通過鍵入驗證GraphLab的成功安裝:如在此圖像中給出可能出現

import graphlab

以下錯誤:

Image

然後,您可以在Python的終端上運行graphlab.get_dependencies()

在Python的終端使用再次驗證安裝:

import graphlab

+0

請不要包含文本的屏幕截圖。將文本複製/粘貼或抄寫到文章本身。 – BSMP

-1

不要GraphLab啓動器打開Jupyter而不是從開始菜單中打開它,並以管理員身份運行。然後從本地主機找到您的文件:8888 /樹

+0

這是關於缺少的依賴關係,而不是關於權限問題。 –