pip install - killed

2020-02-13 11:11发布

I'm trying to install package with pip on Ubuntu server:

$ pip install MySQLdb
Downloading/unpacking MySQLdb
Killed

And it's getting killed. There is enough free RAM on server. Why it is killed?

UPD Logs:

Out of memory: Kill process 6627 (pip) score 297 or sacrifice child

Thats strange, because I have about 150 mb free RAM.

2条回答
时光不老,我们不散
2楼-- · 2020-02-13 11:24

If you are running low on memory you could try with pip install package --no-cache-dir

查看更多
▲ chillily
3楼-- · 2020-02-13 11:38

You have to check logs, depending on the version of ubuntu and stuff, it should be in /var/log/messages or at least in /var/log so you can grep python or pip in that folder. This should provide hints.

Also, if you're not in a virtualenv, you should probably use sudo to perform (implicit) privileged operations, such as copying the library in the global lib folder.

查看更多
登录 后发表回答