Scrapy安装(Linux 和 win10 )python3.6&2.7 全方位安装
欢迎使用一个爬虫萌新的悲惨遭遇
笔者今天在学习《用python写网络爬虫》的第八章学习Scrapy流行的网络爬虫架构。
绝知此事要躬行嘛。所以立即打开电脑进行了安装!
调出命令窗口CMD输入(没装pip的自行搜索如何安装)
pip install Scrapy
果然没有那么简单。
在linux中出现了 :Failed building wheel for Twisted
error: command ‘gcc’ failed with exit status 1
Command “/usr/bin/python2 -u -c “import setuptools, tokenize;file=’/tmp/pip-build-S4duRv/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-tAiOQb-record/install-record.txt --single-version-externally-managed --compile” failed with err