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 错误如下所示:
![](https://oscdn.geek-share.com/Uploads/Images/Content/202006/02/f1576a6c1aa6e2d5064313135caaf37b)
解决方法:
1.首先更新下你的软件源,sudo apt-get update
2.然后在终端执行~$ sudo apt-get install python-dev 得到如下图所示:
![](https://oscdn.geek-share.com/Uploads/Images/Content/202006/02/b4aa34b17b2294f0af7d5dcd16e388c6)
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 进行查看是否安装成功。
![](https://oscdn.geek-share.com/Uploads/Images/Content/202006/02/78a40891e367efe003452861ac4c56fb)
这样我们就安装完成了。
解决方法:
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 进行查看是否安装成功。
这样我们就安装完成了。
相关文章推荐
- error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
- error: Setup script exited with error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
- error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
- “error: command 'x86_64-linux-gnu-gcc' failed with exit status 1” in virtualenv
- ubuntu16.04安装cx_oracle报错:error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
- ubuntu16.04下安装cx-Oracle报错:error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
- ubuntu下安装cryptography报错 error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
- error: command 'x86_64-linux-gnu-gcc' failed with exit status 1” in virtualenv
- error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
- error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
- error: Setup script exited with error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
- error: Setup script exited with error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
- error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
- 报错?!-20170213-command 'x86_64-linux-gnu-gcc' failed with exit status 1
- error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
- [原创] ubuntu下安装scrapy报错 error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
- scrapy install error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
- "error: command 'x86_64-linux-gnu-gcc' failed with
- linux安装scrapy出错'x86_64-Linux-gnu-gcc' failed with exit status 1
- error: command 'i686-linux-gnu-gcc' failed with exit status 1