Install NLTK using Anaconda

       Open Anaconda Prompt, enter Python in the open interactive window, and enter in sequence in the Python environment

import nltk
nltk.download()

        After entering the above command and pressing Enter, the following window will pop up.

      Click download in the pop-up window and wait for the download to complete. 

( Due to network reasons, an error may be reported here or the download may not be successful. It is recommended to use scientific Internet access. )

     After the download is completed, use the following command to test in the Python environment. If text1 to text9 appear, it means nltk is successfully installed.

from nltk.book import *

Guess you like

Origin blog.csdn.net/qq_27052367/article/details/131760699