Python pip3安装Scrapy或Twisted给出"命令" python setup.py egg_info"失败,错误代码1在/ private / tmp / pip-build-51x6vr4n / Twisted /"

时间:2017-07-01 02:44:57

标签: python scrapy

我想用pip3安装scrapy,

.error(function (jqXHR, textStatus, errorThrown) {
    var error = $.parseJSON(jqXHR.responseText);
    $(error).each(function(i,e)
    {
        $('[name="' + e + '"]').addClass('input-validation-error');
    });

 });

但失败了:

sudo pip3 install Scrapy -i https://pypi.douban.com/simple

所以我用了

Command "python setup.py egg_info" failed with error code 1 in /private/tmp/pip-build-s3504tu6/Twisted/

但又失败了。如何解决这个错误?

1 个答案:

答案 0 :(得分:-1)

尝试升级setuptools

pip install --upgrade setuptools

 easy_install -U setuptools

并检查它是否有效