系统教程
您现在的位置是:首页>服务器系统>Ubuntu系统内容

ubuntu下源码安装phantomjs时setuptools错误解决方法

时间:2018-04-25 出处:未知复制分享人气(次) 【

众所周知,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。
    最新资讯
    热门内容
    小米移动电源能为iPad mini充几次电