系统版本 MacOs High Sierra 10.13.4
Python版本 Python 3.7.0
安装方式 git下载安装
错误信息
patch/libs/python/src/converter/builtin_converters.cpp:51:14: error: cannot initialize return object of type 'void *' with an rvalue of type 'const char *' return PyUnicode_Check(obj) ? _PyUnicode_AsString(obj) : 0; ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Library/Frameworks/Python.framework/Versions/3.7/include/python3.7m/unicodeobject.h:363:18: note: expanded from macro 'PyUnicode_Check' PyType_FastSubclass(Py_TYPE(op), Py_TPFLAGS_UNICODE_SUBCLASS) ^ /Library/Frameworks/Python.framework/Versions/3.7/include/python3.7m/object.h:686:35: note: expanded from macro 'PyType_FastSubclass' #define PyType_FastSubclass(t,f) PyType_HasFeature(t,f) ^ /Library/Frameworks/Python.framework/Versions/3.7/include/python3.7m/object.h:684:33: note: expanded from macro 'PyType_HasFeature' #define PyType_HasFeature(t,f) (((t)->tp_flags & (f)) != 0) ^ 1 error generated. error: command 'clang++' failed with exit status 1