首页 » bug飞 » 安装scrapy报错: ERROR: Command "/usr/bin/python -u -c 'import setuptools, 解决

因为scapy有一些依赖没有装

1.报错如下:

 ERROR: Command "/usr/bin/python -u -c 'import setuptools, tokenize;__file__='"'"'/tmp/pip-install-flcyj6mf/Twisted/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-_5ya_3xb/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-install-flcyj6mf/Twisted/

2.解决办法

sudo apt-get install libffi-dev libssl-dev libxml2-dev libxslt1-dev

添加新评论