I am running a Python script that is causing the above error. The unusual thing is this script is running on a different machine and is having no problems.
run "export TEMPDIR=/someDir" where some dir is a valid directory other than /tmp.
Run this on prompt before running your python command. In my case it is "pip install rasa[spacy]" which was earlier failing.
The export command allows you to temporarily use the specified dir as temp dir.