首页 > 编程语言 > 详细

python lxml 安装失败

时间:2014-04-07 08:20:52      阅读:536      评论:0      收藏:0      [点我收藏+]

Make sure you have enough memory. Try dmesg | tail to see if it outputs something like:

[3778136.277570]Out of memory:Kill process 21267(cc1) score 557or sacrifice child
[3778136.277587]Killed process 21267(cc1) total-vm:365836kB, anon-rss:336228kB, file-rss:0kB

可能是内存不够被kill了。

解决方法是,只能用硬盘做交换。

In Short:

  1. Login as root: su - or execute the commands with sudo in front
  2. dd if=/dev/zero of=/swapfile1 bs=1024 count=524288
  3. mkswap /swapfile1
  4. chown root:root /swapfile1
  5. chmod 0600 /swapfile1
  6. swapon /swapfile1

Now the swap file will be activated temporarily, but will be gone after reboot. You should have enough RAM for your installing process

To Remove the File:

  1. swapoff -v /swapfile1
  2. rm /swapfile1

这个帮助就跟神一样呀。

python lxml 安装失败,布布扣,bubuko.com

python lxml 安装失败

原文:http://www.cnblogs.com/ggaaooppeennngg/p/3648899.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!