安装lanms出错
收藏
快速回复
AI Studio平台使用 问答其他 3687 6
安装lanms出错
收藏
快速回复
AI Studio平台使用 问答其他 3687 6

请问下有没有遇到过这个问题,万分感激

ERROR: Command errored out with exit status 1:
command: /opt/conda/envs/auto-car/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-t40yqnd0/lanms/setup.py'"'"'; __file__='"'"'/tmp/pip-install-t40yqnd0/lanms/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-install-t40yqnd0/lanms/pip-egg-info
cwd: /tmp/pip-install-t40yqnd0/lanms/
Complete output (11 lines):
make: Entering directory '/tmp/pip-install-t40yqnd0/lanms'
g++ -o lanms/adaptor.so -I include -std=c++11 -O3 -I/home/aistudio/work/env/auto-car/include/python3.6m -I/home/aistudio/work/env/auto-car/include/python3.6m -Wno-unused-result -Wsign-compare -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O3 -ffunction-sections -pipe -isystem /home/aistudio/work/env/auto-car/include -fdebug-prefix-map=/tmp/build/80754af9/python_1578429706181/work=/usr/local/src/conda/python-3.6.10 -fdebug-prefix-map=/opt/conda/envs/auto-car=/usr/local/src/conda-prefix -fuse-linker-plugin -ffat-lto-objects -flto-partition=none -flto -DNDEBUG -fwrapv -O3 -Wall -L/home/aistudio/work/env/auto-car/lib/python3.6/config-3.6m-x86_64-linux-gnu -L/home/aistudio/work/env/auto-car/lib -lpython3.6m -lpthread -ldl -lutil -lrt -lm -Xlinker -export-dynamic adaptor.cpp include/clipper/clipper.cpp --shared -fPIC
g++: error: unrecognized command line option ‘-fno-plt’
Makefile:10: recipe for target 'lanms/adaptor.so' failed
make: *** [lanms/adaptor.so] Error 1
make: Leaving directory '/tmp/pip-install-t40yqnd0/lanms'
Traceback (most recent call last):
File "", line 1, in
File "/tmp/pip-install-t40yqnd0/lanms/setup.py", line 28, in
raise RuntimeError('Cannot compile lanms in the directory: {}'.format(BASE_DIR))
RuntimeError: Cannot compile lanms in the directory: /tmp/pip-install-t40yqnd0/lanms
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

0
收藏
回复
全部评论(6)
时间顺序
AIStudio810261
#2 回复于2020-02

这是个什么东西? 干啥用的?

0
回复
AIStudio810258
#3 回复于2020-02

是不是权限问题?

0
回复
不我知其亦已兮
#4 回复于2020-11

也遇到了这种情况,请问楼主解决了吗

0
回复
A
AIStudio782782
#5 回复于2021-04

请问您解决了吗

0
回复
花→非←花
#6 回复于2021-06

g++ -v 查看下版本,版本太低的貌似都有这问题,你升级一下gcc版本应该就可以。

 

0
回复
养乐没了多
#7 回复于2022-11

请问你解决了吗?最近要使用ppocr,一直卡在这个问题上,lanms一直安装出错,在网上下载包下来本地安装也出错。

0
回复
在@后输入用户全名并按空格结束,可艾特全站任一用户