Use these commands to reduce the install size of Python libraries, by removing unnecessary downloaded package files:
# Remove about 100-300 MB of unused tar.bz2 archive files
# https://stackoverflow.com/questions/40241133
conda clean --all
# Manually delete about 1-2GB of downloaded packages, after install. See:
# https://groups.google.com/a/continuum.io/d/msg/anaconda/CZjcQKVmIgo/Xx3tYBYzCgAJ
du -sh /path/to/Miniconda/pkgs/ # Just display the folder size
rm -rf /path/to/Miniconda/pkgs/
# Manually delete the useless Pip cache of downloaded files. See:
# https://stackoverflow.com/questions/9510474/removing-pips-cache
rm -rf ~/.cache/pip # Linux
rm -rf ~/Library/Caches/pip/ # Mac OS X
del %LocalAppData%\pip\Cache # Windows
Direct links for info: