Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Scipy installation using pip has been killed on Google cloud instance

I am new to google clouud and I'm trying to install scipy on my google cloud instance.

When I'm executing the following command on google cloud shell in order to install scipy but the process of installation has been killed.

Command for installation

pip install scipy

During the installation I'm getting the following message.

Collecting scipy
Downloading scipy-0.19.0-cp27-cp27mu-manylinux1_x86_64.whl (45.0MB)
99% |████████████████████████████████| 45.0MB 46.8MB/s eta 0:00:01Killed

Any help would be greatly appreciated. Thanks.

like image 548
JT28 Avatar asked May 28 '17 04:05

JT28


1 Answers

Try the following command:

pip --no-cache-dir install scipy

Depending on your Google Cloud VM settings installing scipy in a limited memory environment can cause problems. It seems like pip is trying to read in the complete file into memory before caching it. By running the command stated above you ask pip to avoid caching which should be the solution for the process being killed at 99%.

like image 56
Kevin Katzke Avatar answered Nov 02 '22 04:11

Kevin Katzke