6

I was trying to install turicreate using

pip install -U turicreate

But got the error

Could not install packages due to an EnvironmentError: [Errno 28] No space left on device.I followed all the steps on the installation instructions.

Does anyone know how I could solve this error?

Tox
  • 834
  • 2
  • 12
  • 33
Jeremiah Ngugi
  • 61
  • 1
  • 1
  • 3
  • same here: https://stackoverflow.com/questions/55103162/could-not-install-packages-due-to-an-environmenterror-errno-28-no-space-left – scjorge Mar 08 '20 at 18:20
  • I am getting same issue, do you know the reason for this error? is it because I have no storage just like it says? or no (b.c people are saying they fixed it w/o adding extra storage)... – haneulkim Feb 02 '21 at 07:44

2 Answers2

8

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
eneepo
  • 1,407
  • 3
  • 21
  • 32
6

I got it working with the following command

TMPDIR=/mnt/d/tmp/ pip install -U turicreate

Change the temporary folder path to your liking('/mnt/d/tmp/').

Dharman
  • 30,962
  • 25
  • 85
  • 135
1DD
  • 285
  • 4
  • 8