首页 > 解决方案 > 在 ubuntu 20.04 中安装术语 ctcdecode 时出错

问题描述

请帮忙!
我在 ubuntu 20.04、pyhton 3.8.1 PyTorch 1.10 中安装说法 ctcdecode

 In file included from third_party/openfst-1.6.7/src/lib/flags.cc:15:
    /tmp/pip-req-build-h_ppe86v/third_party/openfst-1.6.7/src/include/fst/compat.h: In member function ‘void fst::CheckSummer::Update(const string&)’:
    /tmp/pip-req-build-h_ppe86v/third_party/openfst-1.6.7/src/include/fst/compat.h:87:23: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::basic_string<char>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
       87 |     for (int i = 0; i < data.size(); ++i) {
          |                     ~~^~~~~~~~~~~~~
    error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
    ----------------------------------------
ERROR: Command errored out with exit status 1: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-req-build-h_ppe86v/setup.py'"'"'; __file__='"'"'/tmp/pip-req-build-h_ppe86v/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-y58voblw/install-record.txt --single-version-externally-managed --user --prefix= --compile --install-headers /home/tanmay/.local/include/python3.8/ctcdecode Check the logs for full command output.

标签: pythonpython-3.x

解决方案


推荐阅读