0
我嘗試下載最新的NLTK版本,並將包含在zip文件中的nltk目錄移動到我的python項目的工作目錄中。然後我試着調用import nltk。通常情況下,盡我的理解,這將工作 - 但我得到這個錯誤:如何在Python項目中包含NLTK
Traceback (most recent call last):
File "/home/akf/PycharmProjects/comrad/main.py", line 32, in <module>
import plugins.nltk as plugins_nltk
File "/home/akf/PycharmProjects/comrad/plugins/nltk/__init__.py", line 89, in <module>
from nltk.internals import config_java
ImportError: No module named nltk.internals
這是準確的,我也無法找到該文件。什麼是最好的方法來做到這一點?