开发者社区 > ModelScope模型即服务 > 正文

uos arm64 麒麟990 安装错误?怎么办?

uos arm64 麒麟990 安装错误:
Building wheels for collected packages: safetensors, backports.zoneinfo, python-crfsuite
Building wheel for safetensors (pyproject.toml) ... error
error: subprocess-exited-with-error

× Building wheel for safetensors (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [25 lines of output]
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-aarch64-cpython-37
creating build/lib.linux-aarch64-cpython-37/safetensors
copying py_src/safetensors/torch.py -> build/lib.linux-aarch64-cpython-37/safetensors
copying py_src/safetensors/paddle.py -> build/lib.linux-aarch64-cpython-37/safetensors
copying py_src/safetensors/flax.py -> build/lib.linux-aarch64-cpython-37/safetensors
copying py_src/safetensors/numpy.py -> build/lib.linux-aarch64-cpython-37/safetensors
copying py_src/safetensors/init.py -> build/lib.linux-aarch64-cpython-37/safetensors
copying py_src/safetensors/tensorflow.py -> build/lib.linux-aarch64-cpython-37/safetensors
running build_ext
running build_rust
error: can't find Rust compiler

  If you are using an outdated pip version, it is possible a prebuilt wheel is available for this package but pip is not able to install from it. Installing from the wheel would avoid the need for a Rust compiler.

  To update pip, run:

      pip install --upgrade pip

  and then retry package installation.

  If you did intend to build this package from source, try installing a Rust compiler from your system package manager and ensure it is on the PATH during installation. Alternatively, rustup (available at https://rustup.rs) is the recommended way to download and update the Rust compiler toolchain.
  [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for safetensors
Building wheel for backports.zoneinfo (pyproject.toml) ... error
error: subprocess-exited-with-error

× Building wheel for backports.zoneinfo (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [53 lines of output]
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-aarch64-cpython-37
creating build/lib.linux-aarch64-cpython-37/backports
copying src/backports/init.py -> build/lib.linux-aarch64-cpython-37/backports
creating build/lib.linux-aarch64-cpython-37/backports/zoneinfo
copying src/backports/zoneinfo/_tzpath.py -> build/lib.linux-aarch64-cpython-37/backports/zoneinfo
copying src/backports/zoneinfo/_common.py -> build/lib.linux-aarch64-cpython-37/backports/zoneinfo
copying src/backports/zoneinfo/_version.py -> build/lib.linux-aarch64-cpython-37/backports/zoneinfo
copying src/backports/zoneinfo/init.py -> build/lib.linux-aarch64-cpython-37/backports/zoneinfo
copying src/backports/zoneinfo/_zoneinfo.py -> build/lib.linux-aarch64-cpython-37/backports/zoneinfo
running egg_info
writing src/backports.zoneinfo.egg-info/PKG-INFO
writing dependency_links to src/backports.zoneinfo.egg-info/dependency_links.txt
writing requirements to src/backports.zoneinfo.egg-info/requires.txt
writing top-level names to src/backports.zoneinfo.egg-info/top_level.txt
reading manifest file 'src/backports.zoneinfo.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
/tmp/pip-build-env-2iapwcvd/overlay/lib/python3.7/site-packages/setuptools/config/setupcfg.py:293: _DeprecatedConfig: Deprecated config in setup.cfg
!!

          ********************************************************************************
          The license_file parameter is deprecated, use license_files instead.

          By 2023-Oct-30, you need to update your project and remove deprecated calls
          or your builds will no longer be supported.

          See https://setuptools.pypa.io/en/latest/userguide/declarative_config.html for details.
          ********************************************************************************

  !!
    parsed = self.parsers.get(option_name, lambda x: x)(value)
  warning: no files found matching '*.png' under directory 'docs'
  warning: no files found matching '*.svg' under directory 'docs'
  no previously-included directories found matching 'docs/_build'
  no previously-included directories found matching 'docs/_output'
  adding license file 'LICENSE'
  adding license file 'licenses/LICENSE_APACHE'
  writing manifest file 'src/backports.zoneinfo.egg-info/SOURCES.txt'
  copying src/backports/zoneinfo/__init__.pyi -> build/lib.linux-aarch64-cpython-37/backports/zoneinfo
  copying src/backports/zoneinfo/py.typed -> build/lib.linux-aarch64-cpython-37/backports/zoneinfo
  running build_ext
  building 'backports.zoneinfo._czoneinfo' extension
  creating build/temp.linux-aarch64-cpython-37
  creating build/temp.linux-aarch64-cpython-37/lib
  aarch64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/usr/include/python3.7m -c lib/zoneinfo_module.c -o build/temp.linux-aarch64-cpython-37/lib/zoneinfo_module.o -std=c99
  lib/zoneinfo_module.c:1:10: fatal error: Python.h: 没有那个文件或目录
   #include "Python.h"
            ^~~~~~~~~~
  compilation terminated.
  error: command '/usr/bin/aarch64-linux-gnu-gcc' failed with exit code 1
  [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for backports.zoneinfo
Building wheel for python-crfsuite (setup.py) ... error
error: subprocess-exited-with-error

× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [275 lines of output]
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-aarch64-3.7
creating build/lib.linux-aarch64-3.7/pycrfsuite
copying pycrfsuite/_dumpparser.py -> build/lib.linux-aarch64-3.7/pycrfsuite
copying pycrfsuite/_logparser.py -> build/lib.linux-aarch64-3.7/pycrfsuite
copying pycrfsuite/init.py -> build/lib.linux-aarch64-3.7/pycrfsuite
running build_ext
building 'pycrfsuite._pycrfsuite' extension
creating build/temp.linux-aarch64-3.7
creating build/temp.linux-aarch64-3.7/crfsuite
creating build/temp.linux-aarch64-3.7/crfsuite/lib
creating build/temp.linux-aarch64-3.7/crfsuite/lib/cqdb
creating build/temp.linux-aarch64-3.7/crfsuite/lib/cqdb/src
creating build/temp.linux-aarch64-3.7/crfsuite/lib/crf
creating build/temp.linux-aarch64-3.7/crfsuite/lib/crf/src
creating build/temp.linux-aarch64-3.7/crfsuite/swig
creating build/temp.linux-aarch64-3.7/liblbfgs
creating build/temp.linux-aarch64-3.7/liblbfgs/lib
creating build/temp.linux-aarch64-3.7/pycrfsuite
aarch64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -I/usr/include/python3.7m -c crfsuite/lib/cqdb/src/cqdb.c -o build/temp.linux-aarch64-3.7/crfsuite/lib/cqdb/src/cqdb.o
crfsuite/lib/cqdb/src/cqdb.c: In function ‘cqdb_to_id’:
crfsuite/lib/cqdb/src/cqdb.c:552:26: warning: variable ‘ksize’ set but not used [-Wunused-but-set-variable]
uint32_t ksize;
^~~
aarch64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -I/usr/include/python3.7m -c crfsuite/lib/cqdb/src/lookup3.c -o build/temp.linux-aarch64-3.7/crfsuite/lib/cqdb/src/lookup3.o
aarch64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -I/usr/include/python3.7m -c crfsuite/lib/crf/src/crf1d_context.c -o build/temp.linux-aarch64-3.7/crfsuite/lib/crf/src/crf1d_context.o
crfsuite/lib/crf/src/crf1d_context.c: In function ‘crf1dc_new’:
crfsuite/lib/crf/src/crf1d_context.c:71:13: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
if (ret = crf1dc_set_num_items(ctx, T)) {
^

crfsuite/lib/crf/src/crf1d_context.c: In function ‘crf1dc_score’:
crfsuite/lib/crf/src/crf1d_context.c:440:15: warning: unused variable ‘L’ [-Wunused-variable]
const int L = ctx->num_labels;
^
crfsuite/lib/crf/src/crf1d_context.c:438:38: warning: unused variable ‘cur’ [-Wunused-variable]
const floatval_t state = NULL, cur = NULL, trans = NULL;
^~~
aarch64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -I/usr/include/python3.7m -c crfsuite/lib/crf/src/crf1d_encode.c -o build/temp.linux-aarch64-3.7/crfsuite/lib/crf/src/crf1d_encode.o
crfsuite/lib/crf/src/crf1d_encode.c: In function ‘crf1de_state_score’:
crfsuite/lib/crf/src/crf1d_encode.c:136:15: warning: unused variable ‘L’ [-Wunused-variable]
const int L = crf1de->num_labels;
^
crfsuite/lib/crf/src/crf1d_encode.c: In function ‘crf1de_state_score_scaled’:
crfsuite/lib/crf/src/crf1d_encode.c:172:15: warning: unused variable ‘L’ [-Wunused-variable]
const int L = crf1de->num_labels;
^
crfsuite/lib/crf/src/crf1d_encode.c: In function ‘crf1de_features_on_path’:
crfsuite/lib/crf/src/crf1d_encode.c:268:15: warning: unused variable ‘L’ [-Wunused-variable]
const int L = crf1de->num_labels;
^
crfsuite/lib/crf/src/crf1d_encode.c:266:22: warning: unused variable ‘ctx’ [-Wunused-variable]
crf1d_context_t
ctx = crf1de->ctx;
^~~
crfsuite/lib/crf/src/crf1d_encode.c: In function ‘crf1de_observation_expectation’:
crfsuite/lib/crf/src/crf1d_encode.c:321:15: warning: unused variable ‘L’ [-Wunused-variable]
const int L = crf1de->num_labels;
^
crfsuite/lib/crf/src/crf1d_encode.c:319:22: warning: unused variable ‘ctx’ [-Wunused-variable]
crf1d_context_t ctx = crf1de->ctx;
^~~
crfsuite/lib/crf/src/crf1d_encode.c: In function ‘crf1de_model_expectation’:
crfsuite/lib/crf/src/crf1d_encode.c:372:41: warning: unused variable ‘trans’ [-Wunused-variable]
const feature_refs_t
attr = NULL, trans = NULL;
^~~
crfsuite/lib/crf/src/crf1d_encode.c: In function ‘crf1de_save_model’:
crfsuite/lib/crf/src/crf1d_encode.c:551:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
if (ret = crf1dmw_open_features(writer)) {
^

crfsuite/lib/crf/src/crf1d_encode.c:585:17: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
if (ret = crf1dmw_put_feature(writer, fmap[k], &feat)) {
^~~
crfsuite/lib/crf/src/crf1d_encode.c:592:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
if (ret = crf1dmw_close_features(writer)) {
^~~
crfsuite/lib/crf/src/crf1d_encode.c:602:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
if (ret = crf1dmw_open_labels(writer, L)) {
^~~
crfsuite/lib/crf/src/crf1d_encode.c:609:17: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
if (ret = crf1dmw_put_label(writer, l, str)) {
^~~
crfsuite/lib/crf/src/crf1d_encode.c:615:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
if (ret = crf1dmw_close_labels(writer)) {
^~~
crfsuite/lib/crf/src/crf1d_encode.c:621:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
if (ret = crf1dmw_open_attrs(writer, B)) {
^~~
crfsuite/lib/crf/src/crf1d_encode.c:629:21: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
if (ret = crf1dmw_put_attr(writer, amap[a], str)) {
^~~
crfsuite/lib/crf/src/crf1d_encode.c:636:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
if (ret = crf1dmw_close_attrs(writer)) {
^~~
crfsuite/lib/crf/src/crf1d_encode.c:642:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
if (ret = crf1dmw_open_labelrefs(writer, L+2)) {
^~~
crfsuite/lib/crf/src/crf1d_encode.c:647:13: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
if (ret = crf1dmw_put_labelref(writer, l, edge, fmap)) {
^~~
crfsuite/lib/crf/src/crf1d_encode.c:651:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
if (ret = crf1dmw_close_labelrefs(writer)) {
^~~
crfsuite/lib/crf/src/crf1d_encode.c:657:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
if (ret = crf1dmw_open_attrrefs(writer, B)) {
^~~
crfsuite/lib/crf/src/crf1d_encode.c:663:17: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
if (ret = crf1dmw_put_attrref(writer, amap[a], attr, fmap)) {
^~~
crfsuite/lib/crf/src/crf1d_encode.c:668:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
if (ret = crf1dmw_close_attrrefs(writer)) {
^~~
crfsuite/lib/crf/src/crf1d_encode.c:508:22: warning: unused variable ‘threshold’ [-Wunused-variable]
const floatval_t threshold = 0.01;
^~~
In file included from crfsuite/lib/crf/src/crf1d_encode.c:47:
crfsuite/lib/crf/src/crf1d_encode.c: In function ‘crf1de_exchange_options’:
crfsuite/lib/crf/src/params.h:49:13: warning: variable ‘ret’ set but not used [-Wunused-but-set-variable]
int
ret = 0; \
^
~~
crfsuite/lib/crf/src/crf1d_encode.c:696:5: note: in expansion of macro ‘BEGIN_PARAM_MAP’
BEGIN_PARAM_MAP(params, mode)
^~~~~
crfsuite/lib/crf/src/crf1d_encode.c: In function ‘encoder_viterbi’:
crfsuite/lib/crf/src/crf1d_encode.c:897:9: warning: unused variable ‘i’ [-Wunused-variable]
int i;
^
crfsuite/lib/crf/src/crf1d_encode.c: In function ‘encoder_save_model’:
crfsuite/lib/crf/src/crf1d_encode.c:864:12: warning: ‘ret’ may be used uninitialized in this function [-Wmaybe-uninitialized]
return crf1de_save_model(crf1de, filename, w, self->ds->data->attrs, self->ds->data->labels, lg);
^
~~~~~~~~~~~~~~~~~~~
aarch64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -I/usr/include/python3.7m -c crfsuite/lib/crf/src/crf1d_feature.c -o build/temp.linux-aarch64-3.7/crfsuite/lib/crf/src/crf1d_feature.o
aarch64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -I/usr/include/python3.7m -c crfsuite/lib/crf/src/crf1d_model.c -o build/temp.linux-aarch64-3.7/crfsuite/lib/crf/src/crf1d_model.o
crfsuite/lib/crf/src/crf1d_model.c: In function ‘crf1dmw_put_labelref’:
crfsuite/lib/crf/src/crf1d_model.c:487:21: warning: unused variable ‘offset’ [-Wunused-variable]
uint32_t n = 0, offset = 0;
^~
crfsuite/lib/crf/src/crf1d_model.c: In function ‘crf1dmw_put_attrref’:
crfsuite/lib/crf/src/crf1d_model.c:594:21: warning: unused variable ‘offset’ [-Wunused-variable]
uint32_t n = 0, offset = 0;
^~
aarch64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -I/usr/include/python3.7m -c crfsuite/lib/crf/src/crf1d_tag.c -o build/temp.linux-aarch64-3.7/crfsuite/lib/crf/src/crf1d_tag.o
crfsuite/lib/crf/src/crf1d_tag.c: In function ‘crf1dt_state_score’:
crfsuite/lib/crf/src/crf1d_tag.c:72:15: warning: unused variable ‘L’ [-Wunused-variable]
const int L = crf1dt->num_labels;
^
aarch64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -I/usr/include/python3.7m -c crfsuite/lib/crf/src/crfsuite.c -o build/temp.linux-aarch64-3.7/crfsuite/lib/crf/src/crfsuite.o
crfsuite/lib/crf/src/crfsuite.c:322:14: warning: ‘safe_strncpy’ defined but not used [-Wunused-function]
static char
safe_strncpy(char dst, const char src, size_t n)
^~~~
aarch64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -I/usr/include/python3.7m -c crfsuite/lib/crf/src/crfsuite_train.c -o build/temp.linux-aarch64-3.7/crfsuite/lib/crf/src/crfsuite_train.o
crfsuite/lib/crf/src/crfsuite_train.c: In function ‘crfsuite_train_train’:
crfsuite/lib/crf/src/crfsuite_train.c:135:11: warning: unused variable ‘algorithm’ [-Wunused-variable]
char algorithm = NULL;
^~~
aarch64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -I/usr/include/python3.7m -c crfsuite/lib/crf/src/dataset.c -o build/temp.linux-aarch64-3.7/crfsuite/lib/crf/src/dataset.o
aarch64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -I/usr/include/python3.7m -c crfsuite/lib/crf/src/dictionary.c -o build/temp.linux-aarch64-3.7/crfsuite/lib/crf/src/dictionary.o
aarch64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -I/usr/include/python3.7m -c crfsuite/lib/crf/src/holdout.c -o build/temp.linux-aarch64-3.7/crfsuite/lib/crf/src/holdout.o
aarch64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -I/usr/include/python3.7m -c crfsuite/lib/crf/src/logging.c -o build/temp.linux-aarch64-3.7/crfsuite/lib/crf/src/logging.o
aarch64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -I/usr/include/python3.7m -c crfsuite/lib/crf/src/params.c -o build/temp.linux-aarch64-3.7/crfsuite/lib/crf/src/params.o
aarch64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -I/usr/include/python3.7m -c crfsuite/lib/crf/src/quark.c -o build/temp.linux-aarch64-3.7/crfsuite/lib/crf/src/quark.o
aarch64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -I/usr/include/python3.7m -c crfsuite/lib/crf/src/rumavl.c -o build/temp.linux-aarch64-3.7/crfsuite/lib/crf/src/rumavl.o
aarch64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -I/usr/include/python3.7m -c crfsuite/lib/crf/src/train_arow.c -o build/temp.linux-aarch64-3.7/crfsuite/lib/crf/src/train_arow.o
In file included from crfsuite/lib/crf/src/train_arow.c:46:
crfsuite/lib/crf/src/train_arow.c: In function ‘exchange_options’:
crfsuite/lib/crf/src/params.h:49:13: warning: variable ‘ret’ set but not used [-Wunused-but-set-variable]
int
ret = 0; \
^
~~
crfsuite/lib/crf/src/train_arow.c:207:5: note: in expansion of macro ‘BEGIN_PARAM_MAP’
BEGIN_PARAM_MAP(params, mode)
^~~~~
crfsuite/lib/crf/src/train_arow.c: In function ‘crfsuite_train_arow’:
crfsuite/lib/crf/src/train_arow.c:288:20: warning: unused variable ‘norm’ [-Wunused-variable]
floatval_t norm = 0., sum_loss = 0.;
^
~
crfsuite/lib/crf/src/train_arow.c:245:16: warning: variable ‘beta’ set but not used [-Wunused-but-set-variable]
floatval_t beta;
^~
At top level:
crfsuite/lib/crf/src/train_arow.c:200:19: warning: ‘tau2’ defined but not used [-Wunused-function]
static floatval_t tau2(floatval_t cost, floatval_t norm, floatval_t c)
^
~
crfsuite/lib/crf/src/train_arow.c:195:19: warning: ‘tau1’ defined but not used [-Wunused-function]
static floatval_t tau1(floatval_t cost, floatval_t norm, floatval_t c)
^~
crfsuite/lib/crf/src/train_arow.c:190:19: warning: ‘tau0’ defined but not used [-Wunused-function]
static floatval_t tau0(floatval_t cost, floatval_t norm, floatval_t c)
^
~
crfsuite/lib/crf/src/train_arow.c:185:19: warning: ‘cost_sensitive’ defined but not used [-Wunused-function]
static floatval_t cost_sensitive(floatval_t err, floatval_t d)
^~~~
crfsuite/lib/crf/src/train_arow.c:180:19: warning: ‘cost_insensitive’ defined but not used [-Wunused-function]
static floatval_t cost_insensitive(floatval_t err, floatval_t d)
^
~~~~~
crfsuite/lib/crf/src/train_arow.c:157:13: warning: ‘delta_add’ defined but not used [-Wunused-function]
static void delta_add(delta_t
dc, floatval_t w, floatval_t ws, const floatval_t tau, const floatval_t u)
^~~
crfsuite/lib/crf/src/train_arow.c:145:19: warning: ‘delta_norm2’ defined but not used [-Wunused-function]
static floatval_t delta_norm2(delta_t *dc)
^
~~
aarch64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -I/usr/include/python3.7m -c crfsuite/lib/crf/src/train_averaged_perceptron.c -o build/temp.linux-aarch64-3.7/crfsuite/lib/crf/src/train_averaged_perceptron.o
In file included from crfsuite/lib/crf/src/train_averaged_perceptron.c:46:
crfsuite/lib/crf/src/train_averaged_perceptron.c: In function ‘exchange_options’:
crfsuite/lib/crf/src/params.h:49:13: warning: variable ‘ret’ set but not used [-Wunused-but-set-variable]
int
ret = 0; \
^
~~
crfsuite/lib/crf/src/train_averaged_perceptron.c:87:5: note: in expansion of macro ‘BEGIN_PARAM_MAP’
BEGIN_PARAM_MAP(params, mode)
^~~~~
crfsuite/lib/crf/src/train_averaged_perceptron.c: In function ‘crfsuite_train_averaged_perceptron’:
crfsuite/lib/crf/src/train_averaged_perceptron.c:155:20: warning: unused variable ‘norm’ [-Wunused-variable]
floatval_t norm = 0., loss = 0.;
^
~
aarch64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -I/usr/include/python3.7m -c crfsuite/lib/crf/src/train_l2sgd.c -o build/temp.linux-aarch64-3.7/crfsuite/lib/crf/src/train_l2sgd.o
crfsuite/lib/crf/src/train_l2sgd.c: In function ‘l2sgd’:
crfsuite/lib/crf/src/train_l2sgd.c:152:23: warning: unused variable ‘clk_begin’ [-Wunused-variable]
clock_t clk_prev, clk_begin = clock();
^~~
In file included from crfsuite/lib/crf/src/train_l2sgd.c:107:
crfsuite/lib/crf/src/train_l2sgd.c: In function ‘exchange_options’:
crfsuite/lib/crf/src/params.h:49:13: warning: variable ‘ret’ set but not used [-Wunused-but-set-variable]
int
ret = 0; \
^
~~
crfsuite/lib/crf/src/train_l2sgd.c:390:5: note: in expansion of macro ‘BEGIN_PARAM_MAP’
BEGIN_PARAM_MAP(params, mode)
^~~~~
crfsuite/lib/crf/src/train_l2sgd.c: In function ‘crfsuite_train_l2sgd’:
crfsuite/lib/crf/src/train_l2sgd.c:454:15: warning: unused variable ‘T’ [-Wunused-variable]
const int T = gm->cap_items;
^
crfsuite/lib/crf/src/train_l2sgd.c: In function ‘l2sgd’:
crfsuite/lib/crf/src/train_l2sgd.c:237:13: warning: ‘eta’ may be used uninitialized in this function [-Wmaybe-uninitialized]
logging(lg, "Learning rate (eta): %f\n", eta);
^
~~~~~~~~~~
aarch64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -I/usr/include/python3.7m -c crfsuite/lib/crf/src/train_lbfgs.c -o build/temp.linux-aarch64-3.7/crfsuite/lib/crf/src/train_lbfgs.o
In file included from crfsuite/lib/crf/src/train_lbfgs.c:49:
crfsuite/lib/crf/src/train_lbfgs.c: In function ‘exchange_options’:
crfsuite/lib/crf/src/params.h:49:13: warning: variable ‘ret’ set but not used [-Wunused-but-set-variable]
int
ret = 0; \
^~~
crfsuite/lib/crf/src/train_lbfgs.c:163:5: note: in expansion of macro ‘BEGIN_PARAM_MAP’
BEGIN_PARAM_MAP(params, mode)
^
~~~~
crfsuite/lib/crf/src/train_lbfgs.c: In function ‘crfsuite_train_lbfgs’:
crfsuite/lib/crf/src/train_lbfgs.c:231:15: warning: unused variable ‘A’ [-Wunused-variable]
const int A = trainset->data->attrs->num(trainset->data->attrs);
^
crfsuite/lib/crf/src/train_lbfgs.c:230:15: warning: unused variable ‘L’ [-Wunused-variable]
const int L = trainset->data->labels->num(trainset->data->labels);
^
crfsuite/lib/crf/src/train_lbfgs.c:229:15: warning: unused variable ‘N’ [-Wunused-variable]
const int N = trainset->num_instances;
^
aarch64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -I/usr/include/python3.7m -c crfsuite/lib/crf/src/train_passive_aggressive.c -o build/temp.linux-aarch64-3.7/crfsuite/lib/crf/src/train_passive_aggressive.o
In file included from crfsuite/lib/crf/src/train_passive_aggressive.c:46:
crfsuite/lib/crf/src/train_passive_aggressive.c: In function ‘exchange_options’:
crfsuite/lib/crf/src/params.h:49:13: warning: variable ‘ret’ set but not used [-Wunused-but-set-variable]
int
ret = 0; \
^~~
crfsuite/lib/crf/src/train_passive_aggressive.c:209:5: note: in expansion of macro ‘BEGIN_PARAM_MAP’
BEGIN_PARAM_MAP(params, mode)
^
~~~~
crfsuite/lib/crf/src/train_passive_aggressive.c: In function ‘crfsuite_train_passive_aggressive’:
crfsuite/lib/crf/src/train_passive_aggressive.c:318:20: warning: unused variable ‘norm’ [-Wunused-variable]
floatval_t norm = 0., sum_loss = 0.;
^~~~
aarch64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -I/usr/include/python3.7m -c crfsuite/swig/crfsuite.cpp -o build/temp.linux-aarch64-3.7/crfsuite/swig/crfsuite.o
aarch64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -I/usr/include/python3.7m -c liblbfgs/lib/lbfgs.c -o build/temp.linux-aarch64-3.7/liblbfgs/lib/lbfgs.o
aarch64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -I/usr/include/python3.7m -c pycrfsuite/_pycrfsuite.cpp -o build/temp.linux-aarch64-3.7/pycrfsuite/_pycrfsuite.o
pycrfsuite/_pycrfsuite.cpp:6:10: fatal error: Python.h: 没有那个文件或目录

   #include "Python.h"
            ^~~~~~~~~~
  compilation terminated.
  error: command 'aarch64-linux-gnu-gcc' failed with exit status 1
  [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for python-crfsuite
Running setup.py clean for python-crfsuite
Failed to build safetensors backports.zoneinfo python-crfsuite
ERROR: Could not build wheels for safetensors, backports.zoneinfo, python-crfsuite, which is required to install pyproject.toml-based projects

展开
收起
1129540784594943 2023-08-28 11:08:33 319 0
1 条回答
写回答
取消 提交回答
  • UOS Arm64 麒麟990 安装错误,可能有以下几个原因:

    磁盘空间不足。安装 UOS Arm64 需要大量的磁盘空间,如果磁盘空间不足,安装就会失败。
    文件损坏。下载的 UOS Arm64 文件可能损坏,导致安装失败。
    系统镜像版本不匹配。安装的 UOS Arm64 版本可能不匹配电脑的硬件,导致安装失败。
    解决方法:

    检查电脑的磁盘空间是否足够,如果空间不足,可以清理一下磁盘空间。
    重新下载 UOS Arm64 文件,确保文件没有损坏。
    选择安装 UOS Arm64 的版本,确保版本与电脑的硬件匹配。
    如果仍然无法解决问题,可以联系 UOS 官方支持团队寻求帮助。

    2023-09-13 14:45:41
    赞同 展开评论 打赏

ModelScope旨在打造下一代开源的模型即服务共享平台,为泛AI开发者提供灵活、易用、低成本的一站式模型服务产品,让模型应用更简单!欢迎加入技术交流群:微信公众号:魔搭ModelScope社区,钉钉群号:44837352

相关电子书

更多
低代码开发师(初级)实战教程 立即下载
冬季实战营第三期:MySQL数据库进阶实战 立即下载
阿里巴巴DevOps 最佳实践手册 立即下载