I\'ve recently seen the --no-cache-dir
being used in a Docker file. I\'ve never seen that flag before and the help is not explaining it:
--no-cache
I get permission error for installation of some pip packages if I don't use --no-cache-dir
option.
Building wheels for collected packages: pyyaml, bottleneck, nvidia-ml-py3
WARNING: Building wheel for pyyaml failed: [Errno 13] Permission denied: '/home/user/.cache/pip/wheels/b1'
WARNING: Building wheel for bottleneck failed: [Errno 13] Permission denied: '/home/user/.cache/pip/wheels/92'
WARNING: Building wheel for nvidia-ml-py3 failed: [Errno 13] Permission denied: '/home/user/.cache/pip/wheels/7f'
chown /.cache
folder didn't help for some reason but with --no-cache-dir
it works ok.