Error importing NLTK on PyCharm

后端 未结 3 443
眼角桃花
眼角桃花 2021-01-24 22:06

I\'m trying to import NLTK in PyCharm, and get the following error. I\'m on Mac OS 10.5.8 with Python 2.7.6. What could be going on? I\'m completely new to programming, so sorry

3条回答
  •  春和景丽
    2021-01-24 22:40

    You'd be much better off sticking with the latest version of pip (1.5.6) and just telling it that you don't care about the security of your python packages:

    pip install --allow-all-external --allow-unverified ntlk nltk
    

    If you really want to be sure an install runs without complaint, you can also tell it not to overwrite any existing installations:

    pip install --upgrade --force-reinstall --allow-all-external --allow-unverified ntlk nltk

    And sudo if you get file write permission errors.

提交回复
热议问题