centos7安装scrapy error: command 'gcc' failed with exit status 1

centos7安装scrapy error: command ‘gcc’ failed with exit status 1

安装scrapy

pip install scrapy

报错

error: command 'gcc' failed with exit status 1

明明系统已经安装gcc
这是因为相关依赖没有安装
解决办法:
先安装相关依赖

yum install gcc libffi-devel python-devel openssl-devel

再安装scrapy

pip install scrapy

猜你喜欢

转载自blog.csdn.net/ithongchou/article/details/83857346