您的位置:首页 > 运维架构 > Linux

error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

2017-05-21 21:02 615 查看
1.在ubuntu下安装scrapy出现错误error: command 'x86_64-linux-gnu-gcc' failed with exit status 1 错误如下所示:



解决方法:

1.首先更新下你的软件源,sudo apt-get update

2.然后在终端执行~$ sudo apt-get install python-dev  得到如下图所示:



3.执行完后,上面上图会有提示说sudo apt autoremove  意思自动删除没有用的包,

我们在终端执行命令~$ sudo apt autoremove 

4. 执行完后,我们开始进行scrapy安装:

sudo pip install scrapy #没有使用豆瓣源
sudo pip install -i https://pypi.douban.com/simple/ scrapy #使用了豆瓣源,可以加速下载
5.安装完成后,我们在终端输入~$ scrapy -h 进行查看是否安装成功。



这样我们就安装完成了。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐