在python 2.7中为64位计算机安装NLTK [英] Install NLTK in python 2.7 for 64-bit machine
本文介绍了在python 2.7中为64位计算机安装NLTK的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何在python2.7中安装NLTK?有用于32位的NLTK软件包,但是64位呢?此外,我无法通过pip安装nltk wheel文件.请帮助!
How to install NLTK in python2.7 ? There is NLTK package for 32 bit but what about 64? Moreover I am unable to install nltk wheel file by pip. Pls help!
推荐答案
请按照以下步骤操作,
1)conda create -n nltk_env python = 2.7
1)conda create -n nltk_env python=2.7
2)源激活nltk_env
2)source activate nltk_env
3)conda安装nltk -c intel
3)conda install nltk -c intel
4)尝试按如下所示导入它
4)try importing it like below
$ python
导入nltk
这篇关于在python 2.7中为64位计算机安装NLTK的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文