python no module named yaml

problem : I got the “ImportError: No module named yaml ” error when I attempted to install NLTK toolkit to my ubuntu system.

solution:

yaml library for python seems to not be installed on your system.

On ubuntu system just do a :

sudo apt-get install python-yaml

On windows

easy_install python-yaml

easy_install rosinstall

转载解决方案

http://blog.sina.com.cn/s/blog_6d65717d0100z4kn.html

在window下安装的时候可能没有自带安装easy_install 需要我们手动安装

首先下载easy_install的安装包,下载地址:
http://pypi.python.org/pypi/setuptools

在页面上找到 ez_setup.py下载下来,执行即可

嫌麻烦的直接下载 PyYAML-3.10.win32-py2.7.exe

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值