AttributeError:模块“pypandoc”没有属性“convert”

goo*_*ill 5 pyspark pypandoc python-poetry

我正在尝试将 python 项目切换到诗歌和 pyproject.toml。以前,我们使用requirements.txt。

然而,当我尝试使用pyspark 2.4.8诗歌安装时,遇到了以下错误:

File "<string>", line 156, in <module>
AttributeError: module 'pypandoc' has no attribute 'convert'
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
Run Code Online (Sandbox Code Playgroud)

有人遇到过这个吗?你知道为什么这是诗歌的问题而不是文学的问题吗requirements.txt

小智 5

我用以下方法解决了这个问题:

pip install pypandoc==1.5


小智 2

看来你需要降级它,因为 1.8 版本中删除了“转换”。 https://github.com/man-group/pytest-plugins/issues/87