【发布时间】:2021-09-10 18:00:55
【问题描述】:
我在 Ubuntu 上工作,并通过 apt-get 为 Python 3.6 安装了 NLTK。 这是我的问题:
>>> import nltk
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/wizard/.local/lib/python3.6/site-packages/nltk/__init__.py", line 128, in <module>
from nltk.collocations import *
File "/wizard/.local/lib/python3.6/site-packages/nltk/collocations.py", line 39, in <module>
from nltk.metrics import (
ModuleNotFoundError: No module named 'nltk.metrics'
我是 Ubuntu 的初学者,所以我不知道如何解决这个问题。我假设度量模块没有与其他模块一起安装?
【问题讨论】:
标签: python python-3.x ubuntu nltk modulenotfounderror