I am trying to install a package with pip on an Ubuntu server:
$ pip install MySQLdb Downloading/unpacking MySQLdb Killed
And they are killing him. The server has enough free RAM. Why is he killed?
UPD Logs:
Out of memory: Kill process 6627 (pip) with a result of 297 or sacrifice a child
This is strange because I have about 150 MB of free memory.
You need to check the logs, depending on the version of ubuntu etc., it should be in /var/log/messagesor at least in /var/logso that you can grep python or pip in this folder. This should contain clues.
/var/log/messages
/var/log
, virtualenv, sudo () , lib.
sudo
, pip install package --no-cache-dir
pip install package --no-cache-dir