["python","pip"]
Where is pip cache folder?

Where is the Python pip cache folder? I had an error during installation and now reinstall packages using cache files. Where is that directory? I want to take a backup of them for installation in the future. Is it possible? For example, I have this one Using cached cssselect-0.9.1.tar.gz I searched google for this directory but nothing I saw, is learning how to install from a folder, I want to find the default cache directory. And another question: Will these cache files stay in that directory, or will they be removed soon?
It depends on the operating system. With pip 20.1 or later, you can find it with: pip cache dir For example with macOS: $ pip cache dir /Users/hugo/Library/Caches/pip Docs: https://pip.pypa.io/en/stable/cli/pip_cache/ https://pip.pypa.io/en/stable/cli/pip_install/#caching