HIT-SCIR / pyltp

pyltp: the python extension for LTP
1.53k stars 352 forks source link

debug时,导入pyltp出现错误 #224

Closed wjx-git closed 4 years ago

wjx-git commented 4 years ago

在提问之前,请确认以下几点:

问题类型

报错如下: ImportError: /home/wjx/anaconda3/lib/python3.6/site-packages/PyQt5/../../../libstdc++.so.6: version `GLIBCXX_3.4.26' not found (required by /home/wjx/anaconda3/lib/python3.6/site-packages/pyltp-0.3.0-py3.6-linux-x86_64.egg/pyltp.cpython-36m-x86_64-linux-gnu.so)

找不到libstdc++.so.6文件,路径不完整,咋办。

出错场景

from pyltp import Segmentor, Postagger, Parser, NamedEntityRecognizer

代码run时不会报错,debug时出现error

代码片段

如何复现这一错误

运行环境

ubuntu 20.4 anaconda 5.2.0 python3.6 gcc 9.0 pyltp 0.3.0

期望结果

其他

Please ensure your issue adheres to the following guidelines:

What is affected by this bug?

When does this occur?

Where on the code does it happen?

How do we replicate the issue?

Your environment information

Expected behavior (i.e. solution)

Other Comments

AlongWY commented 4 years ago

一些资料显示该问题是某些版本的gcc导致的,是否可以尝试下其他版本的编译器

AlongWY commented 4 years ago

ubuntu 18.04 gcc 4.8.5 编译通过