no comments yet
07
Jan
2015
No module named mechanize解决办法
在使用import mechanize
时出错,提示:ImportError: No module named mechanize,需要安装mechanize模块,
以下是安装方法:
下载安装包。
wget http://pypi.python.org/packages/source/m/mechanize/mechanize-0.2.5.tar.gz
解压缩:
tar -zxvf mechanize-0.2.5.tar.gz
进入解压缩后的目录:
cd mechanize-0.2.5
执行安装模块:
python setup.py install