python 2.7安装nltk出错
报错:
Failed building wheel for regex
error: command ‘gcc’ failed with exit status 1
解决方案,选择适合python2.7的nltk版本(因为默认安装的可能是适合python3但是不适合python2的)
pip install nltk==3.4.5
参考链接:python 2.7安装nltk出错 - lucky的文章 - 知乎
https://zhuanlan.zhihu.com/p/508022521