Error importing NLTK on PyCharm

后端 未结 3 442
眼角桃花
眼角桃花 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:44

    I have run into this (and just did again), I don't remember exactly where I found the answer, but it's an openssl version + local certificate issue (spoken like someone who's only vaguely familiar with the concepts). The way I have worked around this is to downgrade pip:

    easy_install pip==1.2.1
    

    After that you should be able to pip install again.

提交回复
热议问题