Solution 1:
Pip won't re-download the package in this solution but in other solution it does
Check the available disk space using df -h
:
$ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/linux--vg-root 100G 29G 71G 29% /
tmpfs 2.0G 46M 1.9G 3% /tmp
tmpfs 394M 12K 394M 1% /run/user/1000
If you just need to change tmpfs size, you can remount it on-line with new size:
$ sudo mount -o remount,size=10G /run/user/1000 # User temp dir
$ sudo mount -o remount,size=10G /tmp # System-wide temp dir
Solution 2:
You can set the environment variable 'TMPDIR' for pip
$ export TMPDIR=$HOME/new/tmp/dir
Solution 3:
With custom cache/temp directory
$ pip install --cache-dir=$HOME/new/tmp/dir/ -U turicreate
Solution 4:
With no cache directory
$ pip install --no-cache-dir -U turicreate