Hi,
I am just setup a new droplet and update/upgrade and when I pip install tensorflow it was killed
(my_env) root@cryptofeed:~# pip install tensorflow Collecting tensorflow Downloading tensorflow-2.4.0-cp38-cp38-manylinux2010_x86_64.whl (394.8 MB) |████████████████████████████████| 394.7 MB 24.4 MB/s eta 0:00:01Killed (my_env) root@cryptofeed:~#
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Hi @paveen,
Most probably the droplet’s RAM was not enough and the server killed the process. In such cases, I recommend creating swap in order for the droplet to handle processes that take more RAM than what it has.
How to add Swap File First SSH to your droplet
Once inside, create a file that will be used for swap:
If faillocate is not installed or if you get an error message saying
fallocate failed: Operation not supported
then you can use the following command to create the swap file:Only the root user should be able to write and read the swap file. To set the correct permissions type:
Use the mkswap utility to set up the file as Linux swap area:
Enable the swap with the following command:
To make the change permanent open the /etc/fstab file and append the following line:
Regards, KFSys