在Google Cloud Compute Engine上的Anaconda2 virtualenv中运行import graphlab
会导致以下堆栈跟踪。在我的机器上本地运行时,它不会导致堆栈跟踪。
ImportError Traceback (most recent call last)
<ipython-input-1-86ee286b3296> in <module>()
----> 1 import graphlab
2 import requests
/home/jbmlaird/anaconda2/envs/gl-env/lib/python2.7/site-packages/graphlab/__init__.pyc in <module>()
57 (_os.path.exists(_os.path.join(_os.path.dirname(__file__), 'cython', 'libstdc++-6.dll')) and \
58 _os.path.exists(_os.path.join(_os.path.dirname(__file__), 'cython', 'libgcc_s_seh-1.dll'))):
---> 59 from graphlab.data_structures.sgraph import Vertex, Edge
60 from graphlab.data_structures.sgraph import SGraph
61 from graphlab.data_structures.sarray import SArray
/home/jbmlaird/anaconda2/envs/gl-env/lib/python2.7/site-packages/graphlab/data_structures/__init__.py in <module>()
23
24 from . import image
---> 25 from . import sframe
26 from . import sarray
27 from . import sgraph
/home/jbmlaird/anaconda2/envs/gl-env/lib/python2.7/site-packages/graphlab/data_structures/sframe.py in <module>()
17 '''
18 from .. import connect as _mt
---> 19 from ..connect import main as glconnect
20 from ..cython.cy_flexible_type import infer_type_of_list
21 from ..cython.context import debug_trace as cython_context
/home/jbmlaird/anaconda2/envs/gl-env/lib/python2.7/site-packages/graphlab/connect/main.py in <module>()
24 # ---------------------------------------------------------------------------
25
---> 26 from ..cython.cy_unity import UnityGlobalProxy
27 from ..cython import cy_ipc
28 from ..cython.cy_server import EmbeddedServer
ImportError: libgomp.so.1: cannot open shared object file: No such file or directory
已安装 GraphLab Create
,Anaconda2
。
答案 0 :(得分:5)
通过运行修复:
sudo apt-get install libgomp1