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


Материал из Wiki - Iphoster - 'the best ever hosting and 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
Exception:
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
   wb.build(autobuilding=True)
 File "/usr/local/lib/python3.4/dist-packages/pip/wheel.py", line 749, in build
   self.requirement_set.prepare_files(self.finder)
 File "/usr/local/lib/python3.4/dist-packages/pip/req/req_set.py", line 380, in prepare_files
   ignore_dependencies=self.ignore_dependencies))
 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
   hashes=hashes
 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
   fp.write(data)
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.
Индекс цитирования