11

Every time when I try to install some package, I get:

(ecz) root@zakazatdostavku:/opt# pip install django gunicorn
Collecting django
  Downloading Django-1.11-py2.py3-none-any.whl (6.9MB)
    99% |████████████████████████████████| 6.9MB 11.6MB/s eta 0:00:01Killed

Here is the link on --verbose version https://github.com/AnSharipov/restrict-same-words/blob/a4b2b4ed47c376ca15bbc19569e72cd3a4533292/log

Machavity
  • 30,841
  • 27
  • 92
  • 100
Mr.Freeman
  • 563
  • 1
  • 6
  • 15
  • 3
    This look like an OOM kill. Can you provide some details about the hardware on which you try to run this command and the amount of memory available. – Giannis Spiliopoulos Apr 06 '17 at 03:37
  • 2
    Please check `/var/log/messages` or `/var/log` for any hint. It could possibly be Out of Memory issue or something. Please check – Kashif Siddiqui Apr 06 '17 at 04:27
  • Also check this virtualenv and root again. Try installing it with sudo, Whats the result? – Kashif Siddiqui Apr 06 '17 at 04:27
  • I didnt find any suitable logs in `/var/log/messages` or `/var/log`. When run `pip install package` over sudo I get the same error - Killed – Mr.Freeman Apr 06 '17 at 07:45
  • 1
    @AjaySingh Got input from `tail -f /var/log/kern.log` Out of memory: Kill process 16044 (pip) score 57 or sacrifice child – Mr.Freeman Apr 06 '17 at 08:18
  • 1
    @Mr.Freeman : try to reinstall and if you didn't get any success, try to swap some memory https://www.digitalocean.com/community/tutorials/how-to-add-swap-space-on-ubuntu-16-04 – Ajay Singh Apr 06 '17 at 10:20
  • @AjaySingh the problem was in RAM. I cleaned memory and everything works fine. Thank you! – Mr.Freeman Apr 06 '17 at 12:18
  • 1
    I had this issue and it was an OOM problem. Increased the size of my VM and all worked fine. –  Jun 19 '17 at 15:28

1 Answers1

28

I had to increase free RAM. After that everything works fine

Mr.Freeman
  • 563
  • 1
  • 6
  • 15
  • 1
    Thank you. I have met same trouble when I was trying to install Tensorflow. About 2Gb RAM was allocated before and it was increased to 4 GB on my virtualbox machine and the package was installed fine. – Orlov Const Dec 16 '19 at 09:40
  • It was the same for me, installing "huggingface transformers" fails with 2GB and succeeds with 4GB on VirtualBox. – MiroJanosik Sep 08 '21 at 16:12