AttributeError:“module”对象没有属性“dfr”

2024-09-27 19:26:40 发布

您现在位置:Python中文网/ 问答频道 /正文

我有以下错误:AttributeError: 'module' object has no attribute 'dfr'

import tethne.readers as rd
wordcounts = rd.dfr.ngrams(datapath, N='uni')

AttributeError: 'module' object has no attribute 'dfr'

研发部?显示有关包的属性(包括dfr)的文档。在

我将名为tethne的包从python3.7包目录移到site pakages目录,并使用conda env2.7(因为这个包与python2兼容,而不是python3),这可能会导致这个错误。我该怎么解决这个问题?在


Tags: noimport目录objectas错误attributerd

热门问题