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

来源:互联网 发布:呼叫中心系统源码 编辑:程序博客网 时间:2024/05/21 17:19

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 进行查看是否安装成功。


这样我们就安装完成了。


阅读全文
0 0