重装完系统,懒得折腾,想在自带python上安装nltk
先看了python版本:

然后按官网步骤安装nltk
结果

发现没有自带pip。。
安装pip 看官网documentation最好
也可以参考 http://www.steptoinstall.com/how-to-install-python-pip-on-a-mac-os-x.html
之前用的是homebrew,重装系统后想试试别的,选择用自带的简易版easy_install 安装pip
结果报错

我还能说什么。。第一次装的时候用brew问题还少些,
不过安装其它包时候ssl安全性问题出现不止一次,没有查到很好解决方案,当时看了大概三四十个stackoverflow上面帖子里给的解决方案,都试了一遍,问题没解决,还出现各种冲突,好怀念homebrew
anyways
换官网 invoke curl
curl https://bootstrap.pypa.io/get-pip.py|python

然额提示说权限有问题
加上 sudo -H

ok
matplotlib还有问题,以后再说
后面顺利安装nltk
网友评论