gpt4 book ai didi

python - 无法使用 turicreate

转载 作者:行者123 更新时间:2023-12-02 02:24:43 25 4
gpt4 key购买 nike

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

导入错误:dlopen(/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/turicreate/cython/cy_unity.so,2):找不到符号:_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/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com