$ PIP_NO_CACHE_DIR=1 pip install gunicorn
Exception:
Traceback (most recent call last):
File "/usr/lib/python3.3/site-packages/pip-7.0.3-py3.3.egg/pip/basecommand.py", line 223, in main
status = self.run(options, args)
File "/usr/lib/python3.3/site-packages/pip-7.0.3-py3.3.egg/pip/commands/install.py", line 242, in run
with self._build_session(options) as session:
File "/usr/lib/python3.3/site-packages/pip-7.0.3-py3.3.egg/pip/basecommand.py", line 71, in _build_session
if options.cache_dir else None
File "/usr/lib64/python3.3/posixpath.py", line 82, in join
elif not path or path.endswith(sep):
AttributeError: 'int' object has no attribute 'endswith'
This is related to #2855 and #2856.
#2856 fixed the exception when using
--no-cache-dirflag, but using the equivalent env var still doesn't work: