ubuntu下源码安装phantomjs时setuptools错误解决方法
众所周知,phantomjs是python运行js的强大第三方库,尤其在爬虫中抓取页面内容由js生成的数据。今天我在ubuntu14.04下源码安装 sudo python setup.py install
时出现如下错误提示:
error: Installed distribution setuptools 3.3 conflicts with requirement setuptools>=8.0
解决方法:pip install --upgrade setuptools
注:非root用户,须在命令前加上 sudo
还没有评论,来说两句吧...