6

の実行に必要な依存関係をダウンロードしようとすると問題が発生します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 環境を使用しています。

4

3 に答える 3

0

GraphLab Create のインストールには、Python 2.7.x 環境と pip バージョン >= 7 および Anaconda2 v4.0.0 (64 ビット) が必要です。これはGraphlab Webサイトのリンクに記載されています

また、pipバージョン<10.x、pip 18.xを使用してGraphlabをインストールしましたが、依存関係エラーが発生しました。

于 2019-01-15T09:02:06.603 に答える
-1

GraphLab Launcher から Jupyter を開かず、スタート メニューから Jupyter を開いて管理者として実行してください。次に、localhost:8888/tree からファイルを見つけます

于 2017-09-10T08:42:34.797 に答える