Open AndyBRoswell opened 3 years ago
Running setup.py install for pkuseg ... error ERROR: Command errored out with exit status 1: command: 'd:\userdata\repos\writing-assistant\venv\scripts\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Andy Roswell\\AppData\\Local\\Temp\\pip-install-hinp4lax\\pkuseg_b7432d07763f4fcc925bf42c46bc0ef3\\setup.py'"'"';
https://github.com/explosion/spaCy/discussions/7370#discussioncomment-455375
file='"'"'C:\Users\Andy Roswell\AppData\Local\Temp\pip-install-hinp4lax\pkuseg_b7432d07763f4fcc925bf42c46bc0ef3\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setu p; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record 'C:\Users\Andy Roswell\AppData\Local\Temp\pip-record-qjzno8a6\install-record.txt' --single-version-externally-managed --comp ile --install-headers 'd:\userdata\repos\writing-assistant\venv\include\site\python3.9\pkuseg' cwd: C:\Users\Andy Roswell\AppData\Local\Temp\pip-install-hinp4lax\pkuseg_b7432d07763f4fcc925bf42c46bc0ef3\ Complete output (60 lines): running install running build running build_py creating build creating build\lib.win-amd64-3.9 creating build\lib.win-amd64-3.9\pkuseg copying pkuseg\config.py -> build\lib.win-amd64-3.9\pkuseg copying pkuseg\data.py -> build\lib.win-amd64-3.9\pkuseg copying pkuseg\download.py -> build\lib.win-amd64-3.9\pkuseg copying pkuseg\gradient.py -> build\lib.win-amd64-3.9\pkuseg copying pkuseg\model.py -> build\lib.win-amd64-3.9\pkuseg copying pkuseg\optimizer.py -> build\lib.win-amd64-3.9\pkuseg copying pkuseg\res_summarize.py -> build\lib.win-amd64-3.9\pkuseg copying pkuseg\scorer.py -> build\lib.win-amd64-3.9\pkuseg copying pkuseg\trainer.py -> build\lib.win-amd64-3.9\pkuseg copying pkuseg__init.py -> build\lib.win-amd64-3.9\pkuseg creating build\lib.win-amd64-3.9\pkuseg\dicts copying pkuseg\dicts\init.py -> build\lib.win-amd64-3.9\pkuseg\dicts creating build\lib.win-amd64-3.9\pkuseg\models copying pkuseg\models\init.py -> build\lib.win-amd64-3.9\pkuseg\models creating build\lib.win-amd64-3.9\pkuseg\postag copying pkuseg\postag\model.py -> build\lib.win-amd64-3.9\pkuseg\postag copying pkuseg\postag\init.py -> build\lib.win-amd64-3.9\pkuseg\postag creating build\lib.win-amd64-3.9\pkuseg\models\default copying pkuseg\models\default\init__.py -> build\lib.win-amd64-3.9\pkuseg\models\default copying pkuseg\feature_extractor.pyx -> build\lib.win-amd64-3.9\pkuseg copying pkuseg\inference.pyx -> build\lib.win-amd64-3.9\pkuseg copying pkuseg\dicts\default.pkl -> build\lib.win-amd64-3.9\pkuseg\dicts copying pkuseg\postag\feature_extractor.pyx -> build\lib.win-amd64-3.9\pkuseg\postag copying pkuseg\models\default\features.pkl -> build\lib.win-amd64-3.9\pkuseg\models\default copying pkuseg\models\default\weights.npz -> build\lib.win-amd64-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.win-amd64-3.9 creating build\temp.win-amd64-3.9\Release creating build\temp.win-amd64-3.9\Release\pkuseg D:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30037\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Id:\userdata\repos\writing-assistant\venv\lib\site-packages\numpy\core\include -Id:\userdata\repos\writing-assistant\ venv\include -ID:\Python\include -ID:\Python\include -ID:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30037\ATLMFC\include -ID:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30037\include -IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um -ID:\Windows Kits\10\include\10.0.19041.0\ucrt -ID:\Windows Kits\10\include\10.0.19041.0\shared -ID:\Windows Kits\10\include\10.0.19041.0\um -ID:\Windows Kits\10\include\10.0.19041.0\winrt -ID:\Windows Kits\10\include\10 .0.19041.0\cppwinrt /EHsc /Tppkuseg\inference.cpp /Fobuild\temp.win-amd64-3.9\Release\pkuseg\inference.obj inference.cpp d:\userdata\repos\writing-assistant\venv\lib\site-packages\numpy\core\include\numpy\npy_1_7_deprecated_api.h(14) : Warning Msg: Using deprecated NumPy API, disable it with #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION pkuseg\inference.cpp(3118): warning C4244: “=”: 从“Py_ssize_t”转换到“int”,可能丢失数据 pkuseg\inference.cpp(4284): warning C4244: “=”: 从“npy_intp”转换到“int”,可能丢失数据 pkuseg\inference.cpp(4285): warning C4244: “=”: 从“npy_intp”转换到“int”,可能丢失数据 pkuseg\inference.cpp(5108): warning C4267: “=”: 从“size_t”转换到“int”,可能丢失数据 pkuseg\inference.cpp(6219): warning C4244: “=”: 从“Py_ssize_t”转换到“int”,可能丢失数据 pkuseg\inference.cpp(6807): warning C4244: “参数”: 从“Py_ssize_t”转换到“int”,可能丢失数据 pkuseg\inference.cpp(23619): error C2039: "tp_print": 不是 "_typeobject" 的成员 D:\Python\include\cpython/object.h(193): note: 参见“_typeobject”的声明 pkuseg\inference.cpp(23624): error C2039: "tp_print": 不是 "_typeobject" 的成员 D:\Python\include\cpython/object.h(193): note: 参见“_typeobject”的声明 pkuseg\inference.cpp(23639): error C2039: "tp_print": 不是 "_typeobject" 的成员 D:\Python\include\cpython/object.h(193): note: 参见“_typeobject”的声明 pkuseg\inference.cpp(23652): error C2039: "tp_print": 不是 "_typeobject" 的成员 D:\Python\include\cpython/object.h(193): note: 参见“_typeobject”的声明 pkuseg\inference.cpp(24323): warning C4996: '_PyUnicode_get_wstr_length': deprecated in 3.3 pkuseg\inference.cpp(24339): warning C4996: '_PyUnicode_get_wstr_length': deprecated in 3.3 pkuseg\inference.cpp(26222): warning C4996: 'PyUnicode_FromUnicode': deprecated in 3.3 error: command 'D:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30037\bin\HostX86\x64\cl.exe' failed with exit code 2