Skip to content

Latest commit

 

History

History
21 lines (13 loc) · 869 Bytes

pip-install-noexec-tmp.md

File metadata and controls

21 lines (13 loc) · 869 Bytes

pip install Failing with /tmp Mounted as noexec

pip install can fail mysteriously if the system's /tmp directory is mounted with the noexec attribute. You can specify a different temporary directory for pip to build packages in by setting or changing the environment variable TMPDIR.

Another option is to re-mount the /tmp directory without the noexec attribute:

mount -o remount exec /tmp

Builds can also fail if the partition containing the build directory runs out of space. In that case, specifying an alternative build location with --build can help (in combination with the change above to TMPDIR).

gevent/gevent#570 (comment)

pypa/pip#4462 (comment)

pypa/pip#4262 (comment)

https://docs.python.org/2/library/tempfile.html