python - 不能导入NLTK模块
怪我咯
怪我咯 2017-04-18 09:35:26
0
2
294

刚开始学习python和nltk,装了python2.7,numpy,nltk. 但是import nltk时出现错误

看不懂是什么原因,试过用sys.setdefaultencoding('gbk'),sys.setdefaultencoding('utf-8')都是失败的。nltk也重新装过几次了,用pip install nltk,或者官网下载下来安装,都试过,都不能导入。其他模块我试过可以import,比如PIL。
刚开始学习,不太明白,求大神帮忙,感激不尽。

怪我咯
怪我咯

走同样的路,发现不同的人生

reply all(2)
黄舟

Try it in spyderetc IDE or editor. The coding of cmd is not very friendly and has various problems

PHPzhong

Have you solved it? I have the same problem. Please help.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!