python项目报错

我在github上下载了刘老师的一个项目https://github.com/liuhuanyong/TextGrapher%E3%80%82%E4%BD%86%E4%B8%8B%E8%BD%BD%E5%88%B0%E6%9C%AC%E5%9C%B0%E4%BB%A5%E5%90%8E%E8%BF%90%E8%A1%8C%E4%B8%8D%E6%88%90%E5%8A%9F%EF%BC%8C%E4%B8%8D%E7%9F%A5%E9%81%93%E8%AF%A5%E6%80%8E%E4%B9%88%E8%A7%A3%E5%86%B3%E6%9C%89%E5%A4%A7%E4%BD%AC%E8%83%BD%E5%B8%AE%E5%8A%A9%E7%9C%8B%E4%B8%80%E4%B8%8B%E4%B9%88%EF%BC%9F

img

img

img

img

Traceback (most recent call last):
  File "D:\github\text\TextGrapher-master\text_grapher.py", line 225, in <module>
    handler = CrimeMining()
  File "D:\github\text\TextGrapher-master\text_grapher.py", line 17, in __init__
    self.parser = LtpParser()
  File "D:\github\text\TextGrapher-master\sentence_parser.py", line 12, in __init__
    self.segmentor = Segmentor()
TypeError: __init__(): incompatible constructor arguments. The following argument types are supported:
    1. pyltp.Segmentor(model_path: str, lexicon_path: str = None, force_lexicon_path: str = None)

Invoked with:



已经安装了pyltp

这个应该是模块的版本更新问题导致的,建议你按照教程的版本安装

你好 请问解决了吗,是要安装哪个版本的pyltp呢