You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [69 lines of output]
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win-amd64-cpython-310
creating build\lib.win-amd64-cpython-310\pkuseg
copying pkuseg\config.py -> build\lib.win-amd64-cpython-310\pkuseg
copying pkuseg\data.py -> build\lib.win-amd64-cpython-310\pkuseg
copying pkuseg\download.py -> build\lib.win-amd64-cpython-310\pkuseg
copying pkuseg\gradient.py -> build\lib.win-amd64-cpython-310\pkuseg
copying pkuseg\model.py -> build\lib.win-amd64-cpython-310\pkuseg
copying pkuseg\optimizer.py -> build\lib.win-amd64-cpython-310\pkuseg
copying pkuseg\res_summarize.py -> build\lib.win-amd64-cpython-310\pkuseg
copying pkuseg\scorer.py -> build\lib.win-amd64-cpython-310\pkuseg
copying pkuseg\trainer.py -> build\lib.win-amd64-cpython-310\pkuseg
copying pkuseg_init_.py -> build\lib.win-amd64-cpython-310\pkuseg
creating build\lib.win-amd64-cpython-310\pkuseg\dicts
copying pkuseg\dicts_init_.py -> build\lib.win-amd64-cpython-310\pkuseg\dicts
creating build\lib.win-amd64-cpython-310\pkuseg\models
copying pkuseg\models_init_.py -> build\lib.win-amd64-cpython-310\pkuseg\models
creating build\lib.win-amd64-cpython-310\pkuseg\postag
copying pkuseg\postag\model.py -> build\lib.win-amd64-cpython-310\pkuseg\postag
copying pkuseg\postag_init_.py -> build\lib.win-amd64-cpython-310\pkuseg\postag
creating build\lib.win-amd64-cpython-310\pkuseg\models\default
copying pkuseg\models\default_init_.py -> build\lib.win-amd64-cpython-310\pkuseg\models\default
copying pkuseg\feature_extractor.pyx -> build\lib.win-amd64-cpython-310\pkuseg
copying pkuseg\inference.pyx -> build\lib.win-amd64-cpython-310\pkuseg
copying pkuseg\dicts\default.pkl -> build\lib.win-amd64-cpython-310\pkuseg\dicts
copying pkuseg\postag\feature_extractor.pyx -> build\lib.win-amd64-cpython-310\pkuseg\postag
copying pkuseg\models\default\features.pkl -> build\lib.win-amd64-cpython-310\pkuseg\models\default
copying pkuseg\models\default\weights.npz -> build\lib.win-amd64-cpython-310\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-cpython-310
creating build\temp.win-amd64-cpython-310\Release
creating build\temp.win-amd64-cpython-310\Release\pkuseg
"C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -IC:\java\anaconda3\envs\pydml\lib\site-packages\numpy\core\include -IC:\java\anaconda3\envs\pydml\include -IC:\java\anaconda3\envs\pydml\Include "-IC:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\include" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.6.1\include\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\cppwinrt" /EHsc /Tppkuseg\inference.cpp /Fobuild\temp.win-amd64-cpython-310\Release\pkuseg\inference.obj
inference.cpp
c:\java\anaconda3\envs\pydml\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: '=': conversion from 'Py_ssize_t' to 'int', possible loss of data
pkuseg\inference.cpp(4284): warning C4244: '=': conversion from 'npy_intp' to 'int', possible loss of data
pkuseg\inference.cpp(4285): warning C4244: '=': conversion from 'npy_intp' to 'int', possible loss of data
pkuseg\inference.cpp(5108): warning C4267: '=': conversion from 'size_t' to 'int', possible loss of data
pkuseg\inference.cpp(6219): warning C4244: '=': conversion from 'Py_ssize_t' to 'int', possible loss of data
pkuseg\inference.cpp(6807): warning C4244: 'argument': conversion from 'Py_ssize_t' to 'int', possible loss of data
pkuseg\inference.cpp(22327): error C2105: '++' needs l-value
pkuseg\inference.cpp(22329): error C2105: '--' needs l-value
pkuseg\inference.cpp(22616): error C2105: '++' needs l-value
pkuseg\inference.cpp(22618): error C2105: '--' needs l-value
pkuseg\inference.cpp(22855): error C2105: '++' needs l-value
pkuseg\inference.cpp(22857): error C2105: '--' needs l-value
pkuseg\inference.cpp(23619): error C2039: 'tp_print': is not a member of '_typeobject'
c:\java\anaconda3\envs\pydml\include\cpython/object.h(191): note: see declaration of '_typeobject'
pkuseg\inference.cpp(23624): error C2039: 'tp_print': is not a member of '_typeobject'
c:\java\anaconda3\envs\pydml\include\cpython/object.h(191): note: see declaration of '_typeobject'
pkuseg\inference.cpp(23639): error C2039: 'tp_print': is not a member of '_typeobject'
c:\java\anaconda3\envs\pydml\include\cpython/object.h(191): note: see declaration of '_typeobject'
pkuseg\inference.cpp(23652): error C2039: 'tp_print': is not a member of '_typeobject'
c:\java\anaconda3\envs\pydml\include\cpython/object.h(191): note: see declaration of '_typeobject'
pkuseg\inference.cpp(24323): warning C4996: '_PyUnicode_get_wstr_length': deprecated in 3.3
c:\java\anaconda3\envs\pydml\include\cpython/unicodeobject.h(446): note: see declaration of '_PyUnicode_get_wstr_length'
pkuseg\inference.cpp(24339): warning C4996: '_PyUnicode_get_wstr_length': deprecated in 3.3
c:\java\anaconda3\envs\pydml\include\cpython/unicodeobject.h(446): note: see declaration of '_PyUnicode_get_wstr_length'
pkuseg\inference.cpp(26222): warning C4996: 'PyUnicode_FromUnicode': deprecated in 3.3
c:\java\anaconda3\envs\pydml\include\cpython/unicodeobject.h(551): note: see declaration of 'PyUnicode_FromUnicode'
error: command 'C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\cl.exe' failed with exit code 2
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
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: subprocess-exited-with-error
× Running setup.py install for pkuseg did not run successfully.
│ exit code: 1
╰─> [71 lines of output]
running install
C:\java\anaconda3\envs\pydml\lib\site-packages\setuptools\command\install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
warnings.warn(
running build
running build_py
creating build
creating build\lib.win-amd64-cpython-310
creating build\lib.win-amd64-cpython-310\pkuseg
copying pkuseg\config.py -> build\lib.win-amd64-cpython-310\pkuseg
copying pkuseg\data.py -> build\lib.win-amd64-cpython-310\pkuseg
copying pkuseg\download.py -> build\lib.win-amd64-cpython-310\pkuseg
copying pkuseg\gradient.py -> build\lib.win-amd64-cpython-310\pkuseg
copying pkuseg\model.py -> build\lib.win-amd64-cpython-310\pkuseg
copying pkuseg\optimizer.py -> build\lib.win-amd64-cpython-310\pkuseg
copying pkuseg\res_summarize.py -> build\lib.win-amd64-cpython-310\pkuseg
copying pkuseg\scorer.py -> build\lib.win-amd64-cpython-310\pkuseg
copying pkuseg\trainer.py -> build\lib.win-amd64-cpython-310\pkuseg
copying pkuseg_init_.py -> build\lib.win-amd64-cpython-310\pkuseg
creating build\lib.win-amd64-cpython-310\pkuseg\dicts
copying pkuseg\dicts_init_.py -> build\lib.win-amd64-cpython-310\pkuseg\dicts
creating build\lib.win-amd64-cpython-310\pkuseg\models
copying pkuseg\models_init_.py -> build\lib.win-amd64-cpython-310\pkuseg\models
creating build\lib.win-amd64-cpython-310\pkuseg\postag
copying pkuseg\postag\model.py -> build\lib.win-amd64-cpython-310\pkuseg\postag
copying pkuseg\postag_init_.py -> build\lib.win-amd64-cpython-310\pkuseg\postag
creating build\lib.win-amd64-cpython-310\pkuseg\models\default
copying pkuseg\models\default_init_.py -> build\lib.win-amd64-cpython-310\pkuseg\models\default
copying pkuseg\feature_extractor.pyx -> build\lib.win-amd64-cpython-310\pkuseg
copying pkuseg\inference.pyx -> build\lib.win-amd64-cpython-310\pkuseg
copying pkuseg\dicts\default.pkl -> build\lib.win-amd64-cpython-310\pkuseg\dicts
copying pkuseg\postag\feature_extractor.pyx -> build\lib.win-amd64-cpython-310\pkuseg\postag
copying pkuseg\models\default\features.pkl -> build\lib.win-amd64-cpython-310\pkuseg\models\default
copying pkuseg\models\default\weights.npz -> build\lib.win-amd64-cpython-310\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.win-amd64-cpython-310
creating build\temp.win-amd64-cpython-310\Release
creating build\temp.win-amd64-cpython-310\Release\pkuseg
"C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -IC:\java\anaconda3\envs\pydml\lib\site-packages\numpy\core\include -IC:\java\anaconda3\envs\pydml\include -IC:\java\anaconda3\envs\pydml\Include "-IC:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\include" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.6.1\include\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\cppwinrt" /EHsc /Tppkuseg\inference.cpp /Fobuild\temp.win-amd64-cpython-310\Release\pkuseg\inference.obj
inference.cpp
c:\java\anaconda3\envs\pydml\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: '=': conversion from 'Py_ssize_t' to 'int', possible loss of data
pkuseg\inference.cpp(4284): warning C4244: '=': conversion from 'npy_intp' to 'int', possible loss of data
pkuseg\inference.cpp(4285): warning C4244: '=': conversion from 'npy_intp' to 'int', possible loss of data
pkuseg\inference.cpp(5108): warning C4267: '=': conversion from 'size_t' to 'int', possible loss of data
pkuseg\inference.cpp(6219): warning C4244: '=': conversion from 'Py_ssize_t' to 'int', possible loss of data
pkuseg\inference.cpp(6807): warning C4244: 'argument': conversion from 'Py_ssize_t' to 'int', possible loss of data
pkuseg\inference.cpp(22327): error C2105: '++' needs l-value
pkuseg\inference.cpp(22329): error C2105: '--' needs l-value
pkuseg\inference.cpp(22616): error C2105: '++' needs l-value
pkuseg\inference.cpp(22618): error C2105: '--' needs l-value
pkuseg\inference.cpp(22855): error C2105: '++' needs l-value
pkuseg\inference.cpp(22857): error C2105: '--' needs l-value
pkuseg\inference.cpp(23619): error C2039: 'tp_print': is not a member of '_typeobject'
c:\java\anaconda3\envs\pydml\include\cpython/object.h(191): note: see declaration of '_typeobject'
pkuseg\inference.cpp(23624): error C2039: 'tp_print': is not a member of '_typeobject'
c:\java\anaconda3\envs\pydml\include\cpython/object.h(191): note: see declaration of '_typeobject'
pkuseg\inference.cpp(23639): error C2039: 'tp_print': is not a member of '_typeobject'
c:\java\anaconda3\envs\pydml\include\cpython/object.h(191): note: see declaration of '_typeobject'
pkuseg\inference.cpp(23652): error C2039: 'tp_print': is not a member of '_typeobject'
c:\java\anaconda3\envs\pydml\include\cpython/object.h(191): note: see declaration of '_typeobject'
pkuseg\inference.cpp(24323): warning C4996: '_PyUnicode_get_wstr_length': deprecated in 3.3
c:\java\anaconda3\envs\pydml\include\cpython/unicodeobject.h(446): note: see declaration of '_PyUnicode_get_wstr_length'
pkuseg\inference.cpp(24339): warning C4996: '_PyUnicode_get_wstr_length': deprecated in 3.3
c:\java\anaconda3\envs\pydml\include\cpython/unicodeobject.h(446): note: see declaration of '_PyUnicode_get_wstr_length'
pkuseg\inference.cpp(26222): warning C4996: 'PyUnicode_FromUnicode': deprecated in 3.3
c:\java\anaconda3\envs\pydml\include\cpython/unicodeobject.h(551): note: see declaration of 'PyUnicode_FromUnicode'
error: command 'C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\cl.exe' failed with exit code 2
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: legacy-install-failure
× Encountered error while trying to install package.
╰─> pkuseg
note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.
Python 3.10.8 | packaged by conda-forge | (main, Nov 24 2022, 14:07:00) [MSC v.1916 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
The text was updated successfully, but these errors were encountered:
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple -U 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/48.8 MB 10.4 MB/s eta 0:00:00
Preparing metadata (setup.py) ... done
Requirement already satisfied: cython in c:\java\anaconda3\envs\pydml\lib\site-packages (from pkuseg) (0.29.33)
Requirement already satisfied: numpy>=1.16.0 in c:\java\anaconda3\envs\pydml\lib\site-packages (from pkuseg) (1.23.5)
Building wheels for collected packages: pkuseg
Building wheel for pkuseg (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [69 lines of output]
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win-amd64-cpython-310
creating build\lib.win-amd64-cpython-310\pkuseg
copying pkuseg\config.py -> build\lib.win-amd64-cpython-310\pkuseg
copying pkuseg\data.py -> build\lib.win-amd64-cpython-310\pkuseg
copying pkuseg\download.py -> build\lib.win-amd64-cpython-310\pkuseg
copying pkuseg\gradient.py -> build\lib.win-amd64-cpython-310\pkuseg
copying pkuseg\model.py -> build\lib.win-amd64-cpython-310\pkuseg
copying pkuseg\optimizer.py -> build\lib.win-amd64-cpython-310\pkuseg
copying pkuseg\res_summarize.py -> build\lib.win-amd64-cpython-310\pkuseg
copying pkuseg\scorer.py -> build\lib.win-amd64-cpython-310\pkuseg
copying pkuseg\trainer.py -> build\lib.win-amd64-cpython-310\pkuseg
copying pkuseg_init_.py -> build\lib.win-amd64-cpython-310\pkuseg
creating build\lib.win-amd64-cpython-310\pkuseg\dicts
copying pkuseg\dicts_init_.py -> build\lib.win-amd64-cpython-310\pkuseg\dicts
creating build\lib.win-amd64-cpython-310\pkuseg\models
copying pkuseg\models_init_.py -> build\lib.win-amd64-cpython-310\pkuseg\models
creating build\lib.win-amd64-cpython-310\pkuseg\postag
copying pkuseg\postag\model.py -> build\lib.win-amd64-cpython-310\pkuseg\postag
copying pkuseg\postag_init_.py -> build\lib.win-amd64-cpython-310\pkuseg\postag
creating build\lib.win-amd64-cpython-310\pkuseg\models\default
copying pkuseg\models\default_init_.py -> build\lib.win-amd64-cpython-310\pkuseg\models\default
copying pkuseg\feature_extractor.pyx -> build\lib.win-amd64-cpython-310\pkuseg
copying pkuseg\inference.pyx -> build\lib.win-amd64-cpython-310\pkuseg
copying pkuseg\dicts\default.pkl -> build\lib.win-amd64-cpython-310\pkuseg\dicts
copying pkuseg\postag\feature_extractor.pyx -> build\lib.win-amd64-cpython-310\pkuseg\postag
copying pkuseg\models\default\features.pkl -> build\lib.win-amd64-cpython-310\pkuseg\models\default
copying pkuseg\models\default\weights.npz -> build\lib.win-amd64-cpython-310\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-cpython-310
creating build\temp.win-amd64-cpython-310\Release
creating build\temp.win-amd64-cpython-310\Release\pkuseg
"C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -IC:\java\anaconda3\envs\pydml\lib\site-packages\numpy\core\include -IC:\java\anaconda3\envs\pydml\include -IC:\java\anaconda3\envs\pydml\Include "-IC:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\include" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.6.1\include\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\cppwinrt" /EHsc /Tppkuseg\inference.cpp /Fobuild\temp.win-amd64-cpython-310\Release\pkuseg\inference.obj
inference.cpp
c:\java\anaconda3\envs\pydml\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: '=': conversion from 'Py_ssize_t' to 'int', possible loss of data
pkuseg\inference.cpp(4284): warning C4244: '=': conversion from 'npy_intp' to 'int', possible loss of data
pkuseg\inference.cpp(4285): warning C4244: '=': conversion from 'npy_intp' to 'int', possible loss of data
pkuseg\inference.cpp(5108): warning C4267: '=': conversion from 'size_t' to 'int', possible loss of data
pkuseg\inference.cpp(6219): warning C4244: '=': conversion from 'Py_ssize_t' to 'int', possible loss of data
pkuseg\inference.cpp(6807): warning C4244: 'argument': conversion from 'Py_ssize_t' to 'int', possible loss of data
pkuseg\inference.cpp(22327): error C2105: '++' needs l-value
pkuseg\inference.cpp(22329): error C2105: '--' needs l-value
pkuseg\inference.cpp(22616): error C2105: '++' needs l-value
pkuseg\inference.cpp(22618): error C2105: '--' needs l-value
pkuseg\inference.cpp(22855): error C2105: '++' needs l-value
pkuseg\inference.cpp(22857): error C2105: '--' needs l-value
pkuseg\inference.cpp(23619): error C2039: 'tp_print': is not a member of '_typeobject'
c:\java\anaconda3\envs\pydml\include\cpython/object.h(191): note: see declaration of '_typeobject'
pkuseg\inference.cpp(23624): error C2039: 'tp_print': is not a member of '_typeobject'
c:\java\anaconda3\envs\pydml\include\cpython/object.h(191): note: see declaration of '_typeobject'
pkuseg\inference.cpp(23639): error C2039: 'tp_print': is not a member of '_typeobject'
c:\java\anaconda3\envs\pydml\include\cpython/object.h(191): note: see declaration of '_typeobject'
pkuseg\inference.cpp(23652): error C2039: 'tp_print': is not a member of '_typeobject'
c:\java\anaconda3\envs\pydml\include\cpython/object.h(191): note: see declaration of '_typeobject'
pkuseg\inference.cpp(24323): warning C4996: '_PyUnicode_get_wstr_length': deprecated in 3.3
c:\java\anaconda3\envs\pydml\include\cpython/unicodeobject.h(446): note: see declaration of '_PyUnicode_get_wstr_length'
pkuseg\inference.cpp(24339): warning C4996: '_PyUnicode_get_wstr_length': deprecated in 3.3
c:\java\anaconda3\envs\pydml\include\cpython/unicodeobject.h(446): note: see declaration of '_PyUnicode_get_wstr_length'
pkuseg\inference.cpp(26222): warning C4996: 'PyUnicode_FromUnicode': deprecated in 3.3
c:\java\anaconda3\envs\pydml\include\cpython/unicodeobject.h(551): note: see declaration of 'PyUnicode_FromUnicode'
error: command 'C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\cl.exe' failed with exit code 2
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
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: subprocess-exited-with-error
× Running setup.py install for pkuseg did not run successfully.
│ exit code: 1
╰─> [71 lines of output]
running install
C:\java\anaconda3\envs\pydml\lib\site-packages\setuptools\command\install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
warnings.warn(
running build
running build_py
creating build
creating build\lib.win-amd64-cpython-310
creating build\lib.win-amd64-cpython-310\pkuseg
copying pkuseg\config.py -> build\lib.win-amd64-cpython-310\pkuseg
copying pkuseg\data.py -> build\lib.win-amd64-cpython-310\pkuseg
copying pkuseg\download.py -> build\lib.win-amd64-cpython-310\pkuseg
copying pkuseg\gradient.py -> build\lib.win-amd64-cpython-310\pkuseg
copying pkuseg\model.py -> build\lib.win-amd64-cpython-310\pkuseg
copying pkuseg\optimizer.py -> build\lib.win-amd64-cpython-310\pkuseg
copying pkuseg\res_summarize.py -> build\lib.win-amd64-cpython-310\pkuseg
copying pkuseg\scorer.py -> build\lib.win-amd64-cpython-310\pkuseg
copying pkuseg\trainer.py -> build\lib.win-amd64-cpython-310\pkuseg
copying pkuseg_init_.py -> build\lib.win-amd64-cpython-310\pkuseg
creating build\lib.win-amd64-cpython-310\pkuseg\dicts
copying pkuseg\dicts_init_.py -> build\lib.win-amd64-cpython-310\pkuseg\dicts
creating build\lib.win-amd64-cpython-310\pkuseg\models
copying pkuseg\models_init_.py -> build\lib.win-amd64-cpython-310\pkuseg\models
creating build\lib.win-amd64-cpython-310\pkuseg\postag
copying pkuseg\postag\model.py -> build\lib.win-amd64-cpython-310\pkuseg\postag
copying pkuseg\postag_init_.py -> build\lib.win-amd64-cpython-310\pkuseg\postag
creating build\lib.win-amd64-cpython-310\pkuseg\models\default
copying pkuseg\models\default_init_.py -> build\lib.win-amd64-cpython-310\pkuseg\models\default
copying pkuseg\feature_extractor.pyx -> build\lib.win-amd64-cpython-310\pkuseg
copying pkuseg\inference.pyx -> build\lib.win-amd64-cpython-310\pkuseg
copying pkuseg\dicts\default.pkl -> build\lib.win-amd64-cpython-310\pkuseg\dicts
copying pkuseg\postag\feature_extractor.pyx -> build\lib.win-amd64-cpython-310\pkuseg\postag
copying pkuseg\models\default\features.pkl -> build\lib.win-amd64-cpython-310\pkuseg\models\default
copying pkuseg\models\default\weights.npz -> build\lib.win-amd64-cpython-310\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.win-amd64-cpython-310
creating build\temp.win-amd64-cpython-310\Release
creating build\temp.win-amd64-cpython-310\Release\pkuseg
"C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -IC:\java\anaconda3\envs\pydml\lib\site-packages\numpy\core\include -IC:\java\anaconda3\envs\pydml\include -IC:\java\anaconda3\envs\pydml\Include "-IC:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\include" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.6.1\include\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\cppwinrt" /EHsc /Tppkuseg\inference.cpp /Fobuild\temp.win-amd64-cpython-310\Release\pkuseg\inference.obj
inference.cpp
c:\java\anaconda3\envs\pydml\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: '=': conversion from 'Py_ssize_t' to 'int', possible loss of data
pkuseg\inference.cpp(4284): warning C4244: '=': conversion from 'npy_intp' to 'int', possible loss of data
pkuseg\inference.cpp(4285): warning C4244: '=': conversion from 'npy_intp' to 'int', possible loss of data
pkuseg\inference.cpp(5108): warning C4267: '=': conversion from 'size_t' to 'int', possible loss of data
pkuseg\inference.cpp(6219): warning C4244: '=': conversion from 'Py_ssize_t' to 'int', possible loss of data
pkuseg\inference.cpp(6807): warning C4244: 'argument': conversion from 'Py_ssize_t' to 'int', possible loss of data
pkuseg\inference.cpp(22327): error C2105: '++' needs l-value
pkuseg\inference.cpp(22329): error C2105: '--' needs l-value
pkuseg\inference.cpp(22616): error C2105: '++' needs l-value
pkuseg\inference.cpp(22618): error C2105: '--' needs l-value
pkuseg\inference.cpp(22855): error C2105: '++' needs l-value
pkuseg\inference.cpp(22857): error C2105: '--' needs l-value
pkuseg\inference.cpp(23619): error C2039: 'tp_print': is not a member of '_typeobject'
c:\java\anaconda3\envs\pydml\include\cpython/object.h(191): note: see declaration of '_typeobject'
pkuseg\inference.cpp(23624): error C2039: 'tp_print': is not a member of '_typeobject'
c:\java\anaconda3\envs\pydml\include\cpython/object.h(191): note: see declaration of '_typeobject'
pkuseg\inference.cpp(23639): error C2039: 'tp_print': is not a member of '_typeobject'
c:\java\anaconda3\envs\pydml\include\cpython/object.h(191): note: see declaration of '_typeobject'
pkuseg\inference.cpp(23652): error C2039: 'tp_print': is not a member of '_typeobject'
c:\java\anaconda3\envs\pydml\include\cpython/object.h(191): note: see declaration of '_typeobject'
pkuseg\inference.cpp(24323): warning C4996: '_PyUnicode_get_wstr_length': deprecated in 3.3
c:\java\anaconda3\envs\pydml\include\cpython/unicodeobject.h(446): note: see declaration of '_PyUnicode_get_wstr_length'
pkuseg\inference.cpp(24339): warning C4996: '_PyUnicode_get_wstr_length': deprecated in 3.3
c:\java\anaconda3\envs\pydml\include\cpython/unicodeobject.h(446): note: see declaration of '_PyUnicode_get_wstr_length'
pkuseg\inference.cpp(26222): warning C4996: 'PyUnicode_FromUnicode': deprecated in 3.3
c:\java\anaconda3\envs\pydml\include\cpython/unicodeobject.h(551): note: see declaration of 'PyUnicode_FromUnicode'
error: command 'C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\cl.exe' failed with exit code 2
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: legacy-install-failure
× Encountered error while trying to install package.
╰─> pkuseg
note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.
Python 3.10.8 | packaged by conda-forge | (main, Nov 24 2022, 14:07:00) [MSC v.1916 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
The text was updated successfully, but these errors were encountered: