python - 在 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.
解决方案
推荐阅读
- c++ - 破坏全局和静态对象的最佳方法?
- python - 获取具有大于指定值的不同值的列名python
- sql - 使用条件分组创建一个新列
- java - 我在 Android Studio 中使用 Weatherstack API 在 Retrofit 中得到空值
- email - WSO2 EI 从 base64 字符串作为附件发送电子邮件
- flutter - Flutter - 如何格式化电话号码文本字段
- android - Subject 忽略了另一个 observable 的 onNext
- powershell - Powershell 包含 - 匹配部分字符串和列表?
- angular - 如何在表格中制作组标题?
- jquery - 表单验证后如何使用ajax发布表单?