Pip install Django - OSError: Errno 28 No space left on device

Материал из Wiki - Iphoster - 'the best ever support'

Перейти к: навигация, поиск

Доступная цена

Pip install Django - OSError: Errno 28 No space left on device

Ошибка при попытке установить Django через pip:

#  pip install Django
Collecting Django
 Using cached Django-1.10.5-py2.py3-none-any.whl
Traceback (most recent call last):
 File "/usr/local/lib/python3.4/dist-packages/pip/basecommand.py", line 215, in main
   status = self.run(options, args)
 File "/usr/local/lib/python3.4/dist-packages/pip/commands/install.py", line 335, in run
 File "/usr/local/lib/python3.4/dist-packages/pip/wheel.py", line 749, in build
 File "/usr/local/lib/python3.4/dist-packages/pip/req/req_set.py", line 380, in prepare_files
 File "/usr/local/lib/python3.4/dist-packages/pip/req/req_set.py", line 620, in _prepare_file
   session=self.session, hashes=hashes)
 File "/usr/local/lib/python3.4/dist-packages/pip/download.py", line 821, in unpack_url
 File "/usr/local/lib/python3.4/dist-packages/pip/download.py", line 663, in unpack_http_url
   unpack_file(from_path, location, content_type, link)
 File "/usr/local/lib/python3.4/dist-packages/pip/utils/__init__.py", line 599, in unpack_file
   flatten=not filename.endswith('.whl')
 File "/usr/local/lib/python3.4/dist-packages/pip/utils/__init__.py", line 501, in unzip_file
OSError: [Errno 28] No space left on device

Решение - это отмонтировать раздел /tmp:

# umount /tmp 
# echo 'MINTMPKB=0' > /etc/default/mountoverflowtmp

или так:

# umount -l /tmp

As a protection against low disc space, some daemons automatically "shadows" the current /tmp/ dir with a ram disc if the the root partition runs out of disc space. Sadly there's no automatic reversion of that process once enough disc space is free again.
Индекс цитирования