我正在尝试使用turicreate。我将其安装在我的设备(sudo python2.7 -m pip install turicreate)上,当我运行代码(在Mac的终端中)时,出现了很长的错误消息。我相信重要的部分如下:

ImportError: dlopen(/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/turicreate/cython/cy_unity.so, 2): Symbol not found: _syslog$DARWIN_EXTSN

以下是其完整性供参考:

Traceback (most recent call last):
  File "classifier.py", line 1, in <module>
    import turicreate as turi
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/turicreate/__init__.py", line 30, in <module>
    from turicreate.data_structures.sgraph import Vertex, Edge
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/turicreate/data_structures/__init__.py", line 18, in <module>
    from . import sframe
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/turicreate/data_structures/sframe.py", line 16, in <module>
    from ..connect import main as glconnect
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/turicreate/connect/main.py", line 13, in <module>
    from ..cython.cy_unity import UnityGlobalProxy
ImportError: dlopen(/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/turicreate/cython/cy_unity.so, 2): Symbol not found: _syslog$DARWIN_EXTSN
  Referenced from: /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/turicreate/cython/../libunity_shared.dylib (which was built for Mac OS X 10.13)
  Expected in: /usr/lib/libSystem.B.dylib
 in /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/turicreate/cython/../libunity_shared.dylib


这里有什么问题?

最佳答案

本文提供了在Mac上为流行的ML包设置Python环境的详细说明-Machine Learning Compass

关于python - 无法使用turicreate,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/48728563/

10-10 05:00