pkuseg-python icon indicating copy to clipboard operation
pkuseg-python copied to clipboard

macOS bigsur python3.9 环境下安装错误

Open swoogle opened this issue 4 years ago • 3 comments

系统版本macOS bigsur python 3.9.1 numpy 1.19.4

pip3 install pkuseg Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple Collecting pkuseg Downloading https://pypi.tuna.tsinghua.edu.cn/packages/64/3a/090a533c7f0682d653633cfd2d33e9aab3e671379fb199aeb7fa9bd3c34a/pkuseg-0.0.25.tar.gz (48.8 MB) |████████████████████████████████| 48.8 MB 34 kB/s Requirement already satisfied: cython in /usr/local/lib/python3.9/site-packages (from pkuseg) (0.29.21) Requirement already satisfied: numpy>=1.16.0 in /usr/local/lib/python3.9/site-packages (from pkuseg) (1.19.4) Building wheels for collected packages: pkuseg Building wheel for pkuseg (setup.py) ... error ERROR: Command errored out with exit status 1: command: /usr/local/opt/[email protected]/bin/python3.9 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/mq/d03jx9w119qdkl177vfnnj8r0000gn/T/pip-install-qxt_qodf/pkuseg_4ab7bfbb8a694be3b858aba43e0472e3/setup.py'"'"'; file='"'"'/private/var/folders/mq/d03jx9w119qdkl177vfnnj8r0000gn/T/pip-install-qxt_qodf/pkuseg_4ab7bfbb8a694be3b858aba43e0472e3/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' bdist_wheel -d /private/var/folders/mq/d03jx9w119qdkl177vfnnj8r0000gn/T/pip-wheel-o6to7nff cwd: /private/var/folders/mq/d03jx9w119qdkl177vfnnj8r0000gn/T/pip-install-qxt_qodf/pkuseg_4ab7bfbb8a694be3b858aba43e0472e3/ Complete output (237 lines): running bdist_wheel running build running build_py creating build creating build/lib.macosx-11-x86_64-3.9 creating build/lib.macosx-11-x86_64-3.9/pkuseg copying pkuseg/config.py -> build/lib.macosx-11-x86_64-3.9/pkuseg copying pkuseg/gradient.py -> build/lib.macosx-11-x86_64-3.9/pkuseg copying pkuseg/download.py -> build/lib.macosx-11-x86_64-3.9/pkuseg copying pkuseg/res_summarize.py -> build/lib.macosx-11-x86_64-3.9/pkuseg copying pkuseg/init.py -> build/lib.macosx-11-x86_64-3.9/pkuseg copying pkuseg/model.py -> build/lib.macosx-11-x86_64-3.9/pkuseg copying pkuseg/optimizer.py -> build/lib.macosx-11-x86_64-3.9/pkuseg copying pkuseg/trainer.py -> build/lib.macosx-11-x86_64-3.9/pkuseg copying pkuseg/data.py -> build/lib.macosx-11-x86_64-3.9/pkuseg copying pkuseg/scorer.py -> build/lib.macosx-11-x86_64-3.9/pkuseg creating build/lib.macosx-11-x86_64-3.9/pkuseg/dicts copying pkuseg/dicts/init.py -> build/lib.macosx-11-x86_64-3.9/pkuseg/dicts creating build/lib.macosx-11-x86_64-3.9/pkuseg/models copying pkuseg/models/init.py -> build/lib.macosx-11-x86_64-3.9/pkuseg/models creating build/lib.macosx-11-x86_64-3.9/pkuseg/postag copying pkuseg/postag/init.py -> build/lib.macosx-11-x86_64-3.9/pkuseg/postag copying pkuseg/postag/model.py -> build/lib.macosx-11-x86_64-3.9/pkuseg/postag creating build/lib.macosx-11-x86_64-3.9/pkuseg/models/default copying pkuseg/models/default/init.py -> build/lib.macosx-11-x86_64-3.9/pkuseg/models/default copying pkuseg/inference.pyx -> build/lib.macosx-11-x86_64-3.9/pkuseg copying pkuseg/feature_extractor.pyx -> build/lib.macosx-11-x86_64-3.9/pkuseg copying pkuseg/dicts/default.pkl -> build/lib.macosx-11-x86_64-3.9/pkuseg/dicts copying pkuseg/postag/feature_extractor.pyx -> build/lib.macosx-11-x86_64-3.9/pkuseg/postag copying pkuseg/models/default/features.pkl -> build/lib.macosx-11-x86_64-3.9/pkuseg/models/default copying pkuseg/models/default/weights.npz -> build/lib.macosx-11-x86_64-3.9/pkuseg/models/default running build_ext skipping 'pkuseg/inference.cpp' Cython extension (up-to-date) cythoning pkuseg/feature_extractor.pyx to pkuseg/feature_extractor.c cythoning pkuseg/postag/feature_extractor.pyx to pkuseg/postag/feature_extractor.c building 'pkuseg.inference' extension creating build/temp.macosx-11-x86_64-3.9 creating build/temp.macosx-11-x86_64-3.9/pkuseg clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -I/usr/local/include -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include -I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers -I/usr/local/lib/python3.9/site-packages/numpy/core/include -I/usr/local/include -I/usr/local/opt/[email protected]/include -I/usr/local/opt/sqlite/include -I/usr/local/Cellar/[email protected]/3.9.1_3/Frameworks/Python.framework/Versions/3.9/include/python3.9 -c pkuseg/inference.cpp -o build/temp.macosx-11-x86_64-3.9/pkuseg/inference.o In file included from pkuseg/inference.cpp:647: In file included from /usr/local/lib/python3.9/site-packages/numpy/core/include/numpy/arrayobject.h:4: In file included from /usr/local/lib/python3.9/site-packages/numpy/core/include/numpy/ndarrayobject.h:12: In file included from /usr/local/lib/python3.9/site-packages/numpy/core/include/numpy/ndarraytypes.h:1822: /usr/local/lib/python3.9/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:17:2: warning: "Using deprecated NumPy API, disable it with " "#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-W#warnings] #warning "Using deprecated NumPy API, disable it with "
^ pkuseg/inference.cpp:23619:26: error: no member named 'tp_print' in '_typeobject' __pyx_type___pyx_array.tp_print = 0; ~~~~~~~~~~~~~~~~~~~~~~ ^ pkuseg/inference.cpp:23624:32: error: no member named 'tp_print' in '_typeobject' __pyx_type___pyx_MemviewEnum.tp_print = 0; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ pkuseg/inference.cpp:23639:31: error: no member named 'tp_print' in '_typeobject' __pyx_type___pyx_memoryview.tp_print = 0; ~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ pkuseg/inference.cpp:23652:36: error: no member named 'tp_print' in '_typeobject' __pyx_type___pyx_memoryviewslice.tp_print = 0; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ pkuseg/inference.cpp:24323:22: warning: '_PyUnicode_get_wstr_length' is deprecated [-Wdeprecated-declarations] (PyUnicode_GET_SIZE(*name) != PyUnicode_GET_SIZE(key)) ? 1 : ^ /usr/local/Cellar/[email protected]/3.9.1_3/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:261:7: note: expanded from macro 'PyUnicode_GET_SIZE' PyUnicode_WSTR_LENGTH(op) :
^ /usr/local/Cellar/[email protected]/3.9.1_3/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:451:35: note: expanded from macro 'PyUnicode_WSTR_LENGTH' #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject
)op) ^ /usr/local/Cellar/[email protected]/3.9.1_3/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:445:1: note: '_PyUnicode_get_wstr_length' has been explicitly marked deprecated here Py_DEPRECATED(3.3) ^ /usr/local/Cellar/[email protected]/3.9.1_3/Frameworks/Python.framework/Versions/3.9/include/python3.9/pyport.h:508:54: note: expanded from macro 'Py_DEPRECATED' #define Py_DEPRECATED(VERSION_UNUSED) attribute((deprecated)) ^ pkuseg/inference.cpp:24323:22: warning: 'PyUnicode_AsUnicode' is deprecated [-Wdeprecated-declarations] (PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 : ^ /usr/local/Cellar/[email protected]/3.9.1_3/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:262:14: note: expanded from macro 'PyUnicode_GET_SIZE' ((void)PyUnicode_AsUnicode(_PyObject_CAST(op)),
^ /usr/local/Cellar/[email protected]/3.9.1_3/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:580:1: note: 'PyUnicode_AsUnicode' has been explicitly marked deprecated here Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode( ^ /usr/local/Cellar/[email protected]/3.9.1_3/Frameworks/Python.framework/Versions/3.9/include/python3.9/pyport.h:508:54: note: expanded from macro 'Py_DEPRECATED' #define Py_DEPRECATED(VERSION_UNUSED) attribute((deprecated)) ^ pkuseg/inference.cpp:24323:22: warning: '_PyUnicode_get_wstr_length' is deprecated [-Wdeprecated-declarations] (PyUnicode_GET_SIZE(*name) != PyUnicode_GET_SIZE(key)) ? 1 : ^ /usr/local/Cellar/[email protected]/3.9.1_3/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:264:8: note: expanded from macro 'PyUnicode_GET_SIZE' PyUnicode_WSTR_LENGTH(op))) ^ /usr/local/Cellar/[email protected]/3.9.1_3/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:451:35: note: expanded from macro 'PyUnicode_WSTR_LENGTH' #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject)op) ^ /usr/local/Cellar/[email protected]/3.9.1_3/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:445:1: note: '_PyUnicode_get_wstr_length' has been explicitly marked deprecated here Py_DEPRECATED(3.3) ^ /usr/local/Cellar/[email protected]/3.9.1_3/Frameworks/Python.framework/Versions/3.9/include/python3.9/pyport.h:508:54: note: expanded from macro 'Py_DEPRECATED' #define Py_DEPRECATED(VERSION_UNUSED) attribute((deprecated)) ^ pkuseg/inference.cpp:24323:52: warning: '_PyUnicode_get_wstr_length' is deprecated [-Wdeprecated-declarations] (PyUnicode_GET_SIZE(*name) != PyUnicode_GET_SIZE(key)) ? 1 : ^ /usr/local/Cellar/[email protected]/3.9.1_3/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:261:7: note: expanded from macro 'PyUnicode_GET_SIZE' PyUnicode_WSTR_LENGTH(op) :
^ /usr/local/Cellar/[email protected]/3.9.1_3/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:451:35: note: expanded from macro 'PyUnicode_WSTR_LENGTH' #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject
)op) ^ /usr/local/Cellar/[email protected]/3.9.1_3/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:445:1: note: '_PyUnicode_get_wstr_length' has been explicitly marked deprecated here Py_DEPRECATED(3.3) ^ /usr/local/Cellar/[email protected]/3.9.1_3/Frameworks/Python.framework/Versions/3.9/include/python3.9/pyport.h:508:54: note: expanded from macro 'Py_DEPRECATED' #define Py_DEPRECATED(VERSION_UNUSED) attribute((deprecated)) ^ pkuseg/inference.cpp:24323:52: warning: 'PyUnicode_AsUnicode' is deprecated [-Wdeprecated-declarations] (PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 : ^ /usr/local/Cellar/[email protected]/3.9.1_3/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:262:14: note: expanded from macro 'PyUnicode_GET_SIZE' ((void)PyUnicode_AsUnicode(_PyObject_CAST(op)),
^ /usr/local/Cellar/[email protected]/3.9.1_3/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:580:1: note: 'PyUnicode_AsUnicode' has been explicitly marked deprecated here Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode( ^ /usr/local/Cellar/[email protected]/3.9.1_3/Frameworks/Python.framework/Versions/3.9/include/python3.9/pyport.h:508:54: note: expanded from macro 'Py_DEPRECATED' #define Py_DEPRECATED(VERSION_UNUSED) attribute((deprecated)) ^ pkuseg/inference.cpp:24323:52: warning: '_PyUnicode_get_wstr_length' is deprecated [-Wdeprecated-declarations] (PyUnicode_GET_SIZE(*name) != PyUnicode_GET_SIZE(key)) ? 1 : ^ /usr/local/Cellar/[email protected]/3.9.1_3/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:264:8: note: expanded from macro 'PyUnicode_GET_SIZE' PyUnicode_WSTR_LENGTH(op))) ^ /usr/local/Cellar/[email protected]/3.9.1_3/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:451:35: note: expanded from macro 'PyUnicode_WSTR_LENGTH' #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject)op) ^ /usr/local/Cellar/[email protected]/3.9.1_3/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:445:1: note: '_PyUnicode_get_wstr_length' has been explicitly marked deprecated here Py_DEPRECATED(3.3) ^ /usr/local/Cellar/[email protected]/3.9.1_3/Frameworks/Python.framework/Versions/3.9/include/python3.9/pyport.h:508:54: note: expanded from macro 'Py_DEPRECATED' #define Py_DEPRECATED(VERSION_UNUSED) attribute((deprecated)) ^ pkuseg/inference.cpp:24339:26: warning: '_PyUnicode_get_wstr_length' is deprecated [-Wdeprecated-declarations] (PyUnicode_GET_SIZE(*argname) != PyUnicode_GET_SIZE(key)) ? 1 : ^ /usr/local/Cellar/[email protected]/3.9.1_3/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:261:7: note: expanded from macro 'PyUnicode_GET_SIZE' PyUnicode_WSTR_LENGTH(op) :
^ /usr/local/Cellar/[email protected]/3.9.1_3/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:451:35: note: expanded from macro 'PyUnicode_WSTR_LENGTH' #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject
)op) ^ /usr/local/Cellar/[email protected]/3.9.1_3/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:445:1: note: '_PyUnicode_get_wstr_length' has been explicitly marked deprecated here Py_DEPRECATED(3.3) ^ /usr/local/Cellar/[email protected]/3.9.1_3/Frameworks/Python.framework/Versions/3.9/include/python3.9/pyport.h:508:54: note: expanded from macro 'Py_DEPRECATED' #define Py_DEPRECATED(VERSION_UNUSED) attribute((deprecated)) ^ pkuseg/inference.cpp:24339:26: warning: 'PyUnicode_AsUnicode' is deprecated [-Wdeprecated-declarations] (PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 : ^ /usr/local/Cellar/[email protected]/3.9.1_3/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:262:14: note: expanded from macro 'PyUnicode_GET_SIZE' ((void)PyUnicode_AsUnicode(_PyObject_CAST(op)),
^ /usr/local/Cellar/[email protected]/3.9.1_3/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:580:1: note: 'PyUnicode_AsUnicode' has been explicitly marked deprecated here Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode( ^ /usr/local/Cellar/[email protected]/3.9.1_3/Frameworks/Python.framework/Versions/3.9/include/python3.9/pyport.h:508:54: note: expanded from macro 'Py_DEPRECATED' #define Py_DEPRECATED(VERSION_UNUSED) attribute((deprecated)) ^ pkuseg/inference.cpp:24339:26: warning: '_PyUnicode_get_wstr_length' is deprecated [-Wdeprecated-declarations] (PyUnicode_GET_SIZE(*argname) != PyUnicode_GET_SIZE(key)) ? 1 : ^ /usr/local/Cellar/[email protected]/3.9.1_3/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:264:8: note: expanded from macro 'PyUnicode_GET_SIZE' PyUnicode_WSTR_LENGTH(op))) ^ /usr/local/Cellar/[email protected]/3.9.1_3/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:451:35: note: expanded from macro 'PyUnicode_WSTR_LENGTH' #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject)op) ^ /usr/local/Cellar/[email protected]/3.9.1_3/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:445:1: note: '_PyUnicode_get_wstr_length' has been explicitly marked deprecated here Py_DEPRECATED(3.3) ^ /usr/local/Cellar/[email protected]/3.9.1_3/Frameworks/Python.framework/Versions/3.9/include/python3.9/pyport.h:508:54: note: expanded from macro 'Py_DEPRECATED' #define Py_DEPRECATED(VERSION_UNUSED) attribute((deprecated)) ^ pkuseg/inference.cpp:24339:59: warning: '_PyUnicode_get_wstr_length' is deprecated [-Wdeprecated-declarations] (PyUnicode_GET_SIZE(*argname) != PyUnicode_GET_SIZE(key)) ? 1 : ^ /usr/local/Cellar/[email protected]/3.9.1_3/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:261:7: note: expanded from macro 'PyUnicode_GET_SIZE' PyUnicode_WSTR_LENGTH(op) :
^ /usr/local/Cellar/[email protected]/3.9.1_3/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:451:35: note: expanded from macro 'PyUnicode_WSTR_LENGTH' #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject
)op) ^ /usr/local/Cellar/[email protected]/3.9.1_3/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:445:1: note: '_PyUnicode_get_wstr_length' has been explicitly marked deprecated here Py_DEPRECATED(3.3) ^ /usr/local/Cellar/[email protected]/3.9.1_3/Frameworks/Python.framework/Versions/3.9/include/python3.9/pyport.h:508:54: note: expanded from macro 'Py_DEPRECATED' #define Py_DEPRECATED(VERSION_UNUSED) attribute((deprecated)) ^ pkuseg/inference.cpp:24339:59: warning: 'PyUnicode_AsUnicode' is deprecated [-Wdeprecated-declarations] (PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 : ^ /usr/local/Cellar/[email protected]/3.9.1_3/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:262:14: note: expanded from macro 'PyUnicode_GET_SIZE' ((void)PyUnicode_AsUnicode(_PyObject_CAST(op)),
^ /usr/local/Cellar/[email protected]/3.9.1_3/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:580:1: note: 'PyUnicode_AsUnicode' has been explicitly marked deprecated here Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode( ^ /usr/local/Cellar/[email protected]/3.9.1_3/Frameworks/Python.framework/Versions/3.9/include/python3.9/pyport.h:508:54: note: expanded from macro 'Py_DEPRECATED' #define Py_DEPRECATED(VERSION_UNUSED) attribute((deprecated)) ^ pkuseg/inference.cpp:24339:59: warning: '_PyUnicode_get_wstr_length' is deprecated [-Wdeprecated-declarations] (PyUnicode_GET_SIZE(argname) != PyUnicode_GET_SIZE(key)) ? 1 : ^ /usr/local/Cellar/[email protected]/3.9.1_3/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:264:8: note: expanded from macro 'PyUnicode_GET_SIZE' PyUnicode_WSTR_LENGTH(op))) ^ /usr/local/Cellar/[email protected]/3.9.1_3/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:451:35: note: expanded from macro 'PyUnicode_WSTR_LENGTH' #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject)op) ^ /usr/local/Cellar/[email protected]/3.9.1_3/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:445:1: note: '_PyUnicode_get_wstr_length' has been explicitly marked deprecated here Py_DEPRECATED(3.3) ^ /usr/local/Cellar/[email protected]/3.9.1_3/Frameworks/Python.framework/Versions/3.9/include/python3.9/pyport.h:508:54: note: expanded from macro 'Py_DEPRECATED' #define Py_DEPRECATED(VERSION_UNUSED) attribute((deprecated)) ^ pkuseg/inference.cpp:26222:16: warning: 'PyUnicode_FromUnicode' is deprecated [-Wdeprecated-declarations] return PyUnicode_FromUnicode(NULL, 0); ^ /usr/local/Cellar/[email protected]/3.9.1_3/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:551:1: note: 'PyUnicode_FromUnicode' has been explicitly marked deprecated here Py_DEPRECATED(3.3) PyAPI_FUNC(PyObject) PyUnicode_FromUnicode( ^ /usr/local/Cellar/[email protected]/3.9.1_3/Frameworks/Python.framework/Versions/3.9/include/python3.9/pyport.h:508:54: note: expanded from macro 'Py_DEPRECATED' #define Py_DEPRECATED(VERSION_UNUSED) attribute((deprecated)) ^ 14 warnings and 4 errors generated. error: command '/usr/bin/clang' failed with exit code 1

ERROR: Failed building wheel for pkuseg Running setup.py clean for pkuseg Failed to build pkuseg Installing collected packages: pkuseg Running setup.py install for pkuseg ... error ERROR: Command errored out with exit status 1: command: /usr/local/opt/[email protected]/bin/python3.9 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/mq/d03jx9w119qdkl177vfnnj8r0000gn/T/pip-install-qxt_qodf/pkuseg_4ab7bfbb8a694be3b858aba43e0472e3/setup.py'"'"'; file='"'"'/private/var/folders/mq/d03jx9w119qdkl177vfnnj8r0000gn/T/pip-install-qxt_qodf/pkuseg_4ab7bfbb8a694be3b858aba43e0472e3/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /private/var/folders/mq/d03jx9w119qdkl177vfnnj8r0000gn/T/pip-record-i7r6xqgk/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/include/python3.9/pkuseg cwd: /private/var/folders/mq/d03jx9w119qdkl177vfnnj8r0000gn/T/pip-install-qxt_qodf/pkuseg_4ab7bfbb8a694be3b858aba43e0472e3/ Complete output (237 lines): running install running build running build_py creating build creating build/lib.macosx-11-x86_64-3.9 creating build/lib.macosx-11-x86_64-3.9/pkuseg copying pkuseg/config.py -> build/lib.macosx-11-x86_64-3.9/pkuseg copying pkuseg/gradient.py -> build/lib.macosx-11-x86_64-3.9/pkuseg copying pkuseg/download.py -> build/lib.macosx-11-x86_64-3.9/pkuseg copying pkuseg/res_summarize.py -> build/lib.macosx-11-x86_64-3.9/pkuseg copying pkuseg/init.py -> build/lib.macosx-11-x86_64-3.9/pkuseg copying pkuseg/model.py -> build/lib.macosx-11-x86_64-3.9/pkuseg copying pkuseg/optimizer.py -> build/lib.macosx-11-x86_64-3.9/pkuseg copying pkuseg/trainer.py -> build/lib.macosx-11-x86_64-3.9/pkuseg copying pkuseg/data.py -> build/lib.macosx-11-x86_64-3.9/pkuseg copying pkuseg/scorer.py -> build/lib.macosx-11-x86_64-3.9/pkuseg creating build/lib.macosx-11-x86_64-3.9/pkuseg/dicts copying pkuseg/dicts/init.py -> build/lib.macosx-11-x86_64-3.9/pkuseg/dicts creating build/lib.macosx-11-x86_64-3.9/pkuseg/models copying pkuseg/models/init.py -> build/lib.macosx-11-x86_64-3.9/pkuseg/models creating build/lib.macosx-11-x86_64-3.9/pkuseg/postag copying pkuseg/postag/init.py -> build/lib.macosx-11-x86_64-3.9/pkuseg/postag copying pkuseg/postag/model.py -> build/lib.macosx-11-x86_64-3.9/pkuseg/postag creating build/lib.macosx-11-x86_64-3.9/pkuseg/models/default copying pkuseg/models/default/init.py -> build/lib.macosx-11-x86_64-3.9/pkuseg/models/default copying pkuseg/inference.pyx -> build/lib.macosx-11-x86_64-3.9/pkuseg copying pkuseg/feature_extractor.pyx -> build/lib.macosx-11-x86_64-3.9/pkuseg copying pkuseg/dicts/default.pkl -> build/lib.macosx-11-x86_64-3.9/pkuseg/dicts copying pkuseg/postag/feature_extractor.pyx -> build/lib.macosx-11-x86_64-3.9/pkuseg/postag copying pkuseg/models/default/features.pkl -> build/lib.macosx-11-x86_64-3.9/pkuseg/models/default copying pkuseg/models/default/weights.npz -> build/lib.macosx-11-x86_64-3.9/pkuseg/models/default running build_ext skipping 'pkuseg/inference.cpp' Cython extension (up-to-date) skipping 'pkuseg/feature_extractor.c' Cython extension (up-to-date) skipping 'pkuseg/postag/feature_extractor.c' Cython extension (up-to-date) building 'pkuseg.inference' extension creating build/temp.macosx-11-x86_64-3.9 creating build/temp.macosx-11-x86_64-3.9/pkuseg clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -I/usr/local/include -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include -I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers -I/usr/local/lib/python3.9/site-packages/numpy/core/include -I/usr/local/include -I/usr/local/opt/[email protected]/include -I/usr/local/opt/sqlite/include -I/usr/local/Cellar/[email protected]/3.9.1_3/Frameworks/Python.framework/Versions/3.9/include/python3.9 -c pkuseg/inference.cpp -o build/temp.macosx-11-x86_64-3.9/pkuseg/inference.o In file included from pkuseg/inference.cpp:647: In file included from /usr/local/lib/python3.9/site-packages/numpy/core/include/numpy/arrayobject.h:4: In file included from /usr/local/lib/python3.9/site-packages/numpy/core/include/numpy/ndarrayobject.h:12: In file included from /usr/local/lib/python3.9/site-packages/numpy/core/include/numpy/ndarraytypes.h:1822: /usr/local/lib/python3.9/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:17:2: warning: "Using deprecated NumPy API, disable it with " "#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-W#warnings] #warning "Using deprecated NumPy API, disable it with "
^ pkuseg/inference.cpp:23619:26: error: no member named 'tp_print' in '_typeobject' __pyx_type___pyx_array.tp_print = 0; ~~~~~~~~~~~~~~~~~~~~~~ ^ pkuseg/inference.cpp:23624:32: error: no member named 'tp_print' in '_typeobject' __pyx_type___pyx_MemviewEnum.tp_print = 0; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ pkuseg/inference.cpp:23639:31: error: no member named 'tp_print' in '_typeobject' __pyx_type___pyx_memoryview.tp_print = 0; ~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ pkuseg/inference.cpp:23652:36: error: no member named 'tp_print' in '_typeobject' __pyx_type___pyx_memoryviewslice.tp_print = 0; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ pkuseg/inference.cpp:24323:22: warning: '_PyUnicode_get_wstr_length' is deprecated [-Wdeprecated-declarations] (PyUnicode_GET_SIZE(*name) != PyUnicode_GET_SIZE(key)) ? 1 : ^ /usr/local/Cellar/[email protected]/3.9.1_3/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:261:7: note: expanded from macro 'PyUnicode_GET_SIZE' PyUnicode_WSTR_LENGTH(op) :
^ /usr/local/Cellar/[email protected]/3.9.1_3/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:451:35: note: expanded from macro 'PyUnicode_WSTR_LENGTH' #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject
)op) ^ /usr/local/Cellar/[email protected]/3.9.1_3/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:445:1: note: '_PyUnicode_get_wstr_length' has been explicitly marked deprecated here Py_DEPRECATED(3.3) ^ /usr/local/Cellar/[email protected]/3.9.1_3/Frameworks/Python.framework/Versions/3.9/include/python3.9/pyport.h:508:54: note: expanded from macro 'Py_DEPRECATED' #define Py_DEPRECATED(VERSION_UNUSED) attribute((deprecated)) ^ pkuseg/inference.cpp:24323:22: warning: 'PyUnicode_AsUnicode' is deprecated [-Wdeprecated-declarations] (PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 : ^ /usr/local/Cellar/[email protected]/3.9.1_3/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:262:14: note: expanded from macro 'PyUnicode_GET_SIZE' ((void)PyUnicode_AsUnicode(_PyObject_CAST(op)),
^ /usr/local/Cellar/[email protected]/3.9.1_3/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:580:1: note: 'PyUnicode_AsUnicode' has been explicitly marked deprecated here Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode( ^ /usr/local/Cellar/[email protected]/3.9.1_3/Frameworks/Python.framework/Versions/3.9/include/python3.9/pyport.h:508:54: note: expanded from macro 'Py_DEPRECATED' #define Py_DEPRECATED(VERSION_UNUSED) attribute((deprecated)) ^ pkuseg/inference.cpp:24323:22: warning: '_PyUnicode_get_wstr_length' is deprecated [-Wdeprecated-declarations] (PyUnicode_GET_SIZE(*name) != PyUnicode_GET_SIZE(key)) ? 1 : ^ /usr/local/Cellar/[email protected]/3.9.1_3/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:264:8: note: expanded from macro 'PyUnicode_GET_SIZE' PyUnicode_WSTR_LENGTH(op))) ^ /usr/local/Cellar/[email protected]/3.9.1_3/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:451:35: note: expanded from macro 'PyUnicode_WSTR_LENGTH' #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject)op) ^ /usr/local/Cellar/[email protected]/3.9.1_3/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:445:1: note: '_PyUnicode_get_wstr_length' has been explicitly marked deprecated here Py_DEPRECATED(3.3) ^ /usr/local/Cellar/[email protected]/3.9.1_3/Frameworks/Python.framework/Versions/3.9/include/python3.9/pyport.h:508:54: note: expanded from macro 'Py_DEPRECATED' #define Py_DEPRECATED(VERSION_UNUSED) attribute((deprecated)) ^ pkuseg/inference.cpp:24323:52: warning: '_PyUnicode_get_wstr_length' is deprecated [-Wdeprecated-declarations] (PyUnicode_GET_SIZE(*name) != PyUnicode_GET_SIZE(key)) ? 1 : ^ /usr/local/Cellar/[email protected]/3.9.1_3/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:261:7: note: expanded from macro 'PyUnicode_GET_SIZE' PyUnicode_WSTR_LENGTH(op) :
^ /usr/local/Cellar/[email protected]/3.9.1_3/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:451:35: note: expanded from macro 'PyUnicode_WSTR_LENGTH' #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject
)op) ^ /usr/local/Cellar/[email protected]/3.9.1_3/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:445:1: note: '_PyUnicode_get_wstr_length' has been explicitly marked deprecated here Py_DEPRECATED(3.3) ^ /usr/local/Cellar/[email protected]/3.9.1_3/Frameworks/Python.framework/Versions/3.9/include/python3.9/pyport.h:508:54: note: expanded from macro 'Py_DEPRECATED' #define Py_DEPRECATED(VERSION_UNUSED) attribute((deprecated)) ^ pkuseg/inference.cpp:24323:52: warning: 'PyUnicode_AsUnicode' is deprecated [-Wdeprecated-declarations] (PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 : ^ /usr/local/Cellar/[email protected]/3.9.1_3/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:262:14: note: expanded from macro 'PyUnicode_GET_SIZE' ((void)PyUnicode_AsUnicode(_PyObject_CAST(op)),
^ /usr/local/Cellar/[email protected]/3.9.1_3/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:580:1: note: 'PyUnicode_AsUnicode' has been explicitly marked deprecated here Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode( ^ /usr/local/Cellar/[email protected]/3.9.1_3/Frameworks/Python.framework/Versions/3.9/include/python3.9/pyport.h:508:54: note: expanded from macro 'Py_DEPRECATED' #define Py_DEPRECATED(VERSION_UNUSED) attribute((deprecated)) ^ pkuseg/inference.cpp:24323:52: warning: '_PyUnicode_get_wstr_length' is deprecated [-Wdeprecated-declarations] (PyUnicode_GET_SIZE(*name) != PyUnicode_GET_SIZE(key)) ? 1 : ^ /usr/local/Cellar/[email protected]/3.9.1_3/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:264:8: note: expanded from macro 'PyUnicode_GET_SIZE' PyUnicode_WSTR_LENGTH(op))) ^ /usr/local/Cellar/[email protected]/3.9.1_3/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:451:35: note: expanded from macro 'PyUnicode_WSTR_LENGTH' #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject)op) ^ /usr/local/Cellar/[email protected]/3.9.1_3/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:445:1: note: '_PyUnicode_get_wstr_length' has been explicitly marked deprecated here Py_DEPRECATED(3.3) ^ /usr/local/Cellar/[email protected]/3.9.1_3/Frameworks/Python.framework/Versions/3.9/include/python3.9/pyport.h:508:54: note: expanded from macro 'Py_DEPRECATED' #define Py_DEPRECATED(VERSION_UNUSED) attribute((deprecated)) ^ pkuseg/inference.cpp:24339:26: warning: '_PyUnicode_get_wstr_length' is deprecated [-Wdeprecated-declarations] (PyUnicode_GET_SIZE(*argname) != PyUnicode_GET_SIZE(key)) ? 1 : ^ /usr/local/Cellar/[email protected]/3.9.1_3/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:261:7: note: expanded from macro 'PyUnicode_GET_SIZE' PyUnicode_WSTR_LENGTH(op) :
^ /usr/local/Cellar/[email protected]/3.9.1_3/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:451:35: note: expanded from macro 'PyUnicode_WSTR_LENGTH' #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject
)op) ^ /usr/local/Cellar/[email protected]/3.9.1_3/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:445:1: note: '_PyUnicode_get_wstr_length' has been explicitly marked deprecated here Py_DEPRECATED(3.3) ^ /usr/local/Cellar/[email protected]/3.9.1_3/Frameworks/Python.framework/Versions/3.9/include/python3.9/pyport.h:508:54: note: expanded from macro 'Py_DEPRECATED' #define Py_DEPRECATED(VERSION_UNUSED) attribute((deprecated)) ^ pkuseg/inference.cpp:24339:26: warning: 'PyUnicode_AsUnicode' is deprecated [-Wdeprecated-declarations] (PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 : ^ /usr/local/Cellar/[email protected]/3.9.1_3/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:262:14: note: expanded from macro 'PyUnicode_GET_SIZE' ((void)PyUnicode_AsUnicode(_PyObject_CAST(op)),
^ /usr/local/Cellar/[email protected]/3.9.1_3/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:580:1: note: 'PyUnicode_AsUnicode' has been explicitly marked deprecated here Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode( ^ /usr/local/Cellar/[email protected]/3.9.1_3/Frameworks/Python.framework/Versions/3.9/include/python3.9/pyport.h:508:54: note: expanded from macro 'Py_DEPRECATED' #define Py_DEPRECATED(VERSION_UNUSED) attribute((deprecated)) ^ pkuseg/inference.cpp:24339:26: warning: '_PyUnicode_get_wstr_length' is deprecated [-Wdeprecated-declarations] (PyUnicode_GET_SIZE(*argname) != PyUnicode_GET_SIZE(key)) ? 1 : ^ /usr/local/Cellar/[email protected]/3.9.1_3/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:264:8: note: expanded from macro 'PyUnicode_GET_SIZE' PyUnicode_WSTR_LENGTH(op))) ^ /usr/local/Cellar/[email protected]/3.9.1_3/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:451:35: note: expanded from macro 'PyUnicode_WSTR_LENGTH' #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject)op) ^ /usr/local/Cellar/[email protected]/3.9.1_3/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:445:1: note: '_PyUnicode_get_wstr_length' has been explicitly marked deprecated here Py_DEPRECATED(3.3) ^ /usr/local/Cellar/[email protected]/3.9.1_3/Frameworks/Python.framework/Versions/3.9/include/python3.9/pyport.h:508:54: note: expanded from macro 'Py_DEPRECATED' #define Py_DEPRECATED(VERSION_UNUSED) attribute((deprecated)) ^ pkuseg/inference.cpp:24339:59: warning: '_PyUnicode_get_wstr_length' is deprecated [-Wdeprecated-declarations] (PyUnicode_GET_SIZE(*argname) != PyUnicode_GET_SIZE(key)) ? 1 : ^ /usr/local/Cellar/[email protected]/3.9.1_3/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:261:7: note: expanded from macro 'PyUnicode_GET_SIZE' PyUnicode_WSTR_LENGTH(op) :
^ /usr/local/Cellar/[email protected]/3.9.1_3/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:451:35: note: expanded from macro 'PyUnicode_WSTR_LENGTH' #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject
)op) ^ /usr/local/Cellar/[email protected]/3.9.1_3/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:445:1: note: '_PyUnicode_get_wstr_length' has been explicitly marked deprecated here Py_DEPRECATED(3.3) ^ /usr/local/Cellar/[email protected]/3.9.1_3/Frameworks/Python.framework/Versions/3.9/include/python3.9/pyport.h:508:54: note: expanded from macro 'Py_DEPRECATED' #define Py_DEPRECATED(VERSION_UNUSED) attribute((deprecated)) ^ pkuseg/inference.cpp:24339:59: warning: 'PyUnicode_AsUnicode' is deprecated [-Wdeprecated-declarations] (PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 : ^ /usr/local/Cellar/[email protected]/3.9.1_3/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:262:14: note: expanded from macro 'PyUnicode_GET_SIZE' ((void)PyUnicode_AsUnicode(_PyObject_CAST(op)),
^ /usr/local/Cellar/[email protected]/3.9.1_3/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:580:1: note: 'PyUnicode_AsUnicode' has been explicitly marked deprecated here Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode( ^ /usr/local/Cellar/[email protected]/3.9.1_3/Frameworks/Python.framework/Versions/3.9/include/python3.9/pyport.h:508:54: note: expanded from macro 'Py_DEPRECATED' #define Py_DEPRECATED(VERSION_UNUSED) attribute((deprecated)) ^ pkuseg/inference.cpp:24339:59: warning: '_PyUnicode_get_wstr_length' is deprecated [-Wdeprecated-declarations] (PyUnicode_GET_SIZE(argname) != PyUnicode_GET_SIZE(key)) ? 1 : ^ /usr/local/Cellar/[email protected]/3.9.1_3/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:264:8: note: expanded from macro 'PyUnicode_GET_SIZE' PyUnicode_WSTR_LENGTH(op))) ^ /usr/local/Cellar/[email protected]/3.9.1_3/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:451:35: note: expanded from macro 'PyUnicode_WSTR_LENGTH' #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject)op) ^ /usr/local/Cellar/[email protected]/3.9.1_3/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:445:1: note: '_PyUnicode_get_wstr_length' has been explicitly marked deprecated here Py_DEPRECATED(3.3) ^ /usr/local/Cellar/[email protected]/3.9.1_3/Frameworks/Python.framework/Versions/3.9/include/python3.9/pyport.h:508:54: note: expanded from macro 'Py_DEPRECATED' #define Py_DEPRECATED(VERSION_UNUSED) attribute((deprecated)) ^ pkuseg/inference.cpp:26222:16: warning: 'PyUnicode_FromUnicode' is deprecated [-Wdeprecated-declarations] return PyUnicode_FromUnicode(NULL, 0); ^ /usr/local/Cellar/[email protected]/3.9.1_3/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:551:1: note: 'PyUnicode_FromUnicode' has been explicitly marked deprecated here Py_DEPRECATED(3.3) PyAPI_FUNC(PyObject) PyUnicode_FromUnicode( ^ /usr/local/Cellar/[email protected]/3.9.1_3/Frameworks/Python.framework/Versions/3.9/include/python3.9/pyport.h:508:54: note: expanded from macro 'Py_DEPRECATED' #define Py_DEPRECATED(VERSION_UNUSED) attribute((deprecated)) ^ 14 warnings and 4 errors generated. error: command '/usr/bin/clang' failed with exit code 1 ---------------------------------------- ERROR: Command errored out with exit status 1: /usr/local/opt/[email protected]/bin/python3.9 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/mq/d03jx9w119qdkl177vfnnj8r0000gn/T/pip-install-qxt_qodf/pkuseg_4ab7bfbb8a694be3b858aba43e0472e3/setup.py'"'"'; file='"'"'/private/var/folders/mq/d03jx9w119qdkl177vfnnj8r0000gn/T/pip-install-qxt_qodf/pkuseg_4ab7bfbb8a694be3b858aba43e0472e3/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /private/var/folders/mq/d03jx9w119qdkl177vfnnj8r0000gn/T/pip-record-i7r6xqgk/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/include/python3.9/pkuseg Check the logs for full command output.

swoogle avatar Jan 04 '21 11:01 swoogle

Debian buster 也有这个问题。用docker镜像python:3.9.1-slim-buster可以重现问题。

lucaskjaero avatar Jan 12 '21 07:01 lucaskjaero

@swoogle 自己git clone下来编译就好了

liyucheng09 avatar Apr 16 '21 07:04 liyucheng09

https://github.com/explosion/spaCy/discussions/7370#discussioncomment-455375

ficapy avatar Aug 13 '21 10:08 ficapy