将 nltk 导入 Python3 时遇到问题

Having trouble importing nltk into Python3

当我运行命令时:

pip3 install nltk

我的终端输出:

Requirement already satisfied: nltk in ./Library/Python/2.7/lib/python/site-packages (3.4.5)

但是当我加载 python3 时,我得到:

ModuleNotFoundError: No module named 'nltk'

这快把我逼疯了,我确定我错过了一些非常基本的东西,我就是不明白是什么!

上周解决了这个问题,但它需要将 nltk 包从 Python 2.7 库移动到 Python 3 库。如果这太难了,另一种选择是删除出现的任何位置的包并重新安装 pip3 install nltk