clear python install cache code example
Example 1: clear all python cache
find . | grep -E "(__pycache__|\.pyc|\.pyo$)" | xargs rm -rf
Example 2: pip clear download cache
pip cache dir
find . | grep -E "(__pycache__|\.pyc|\.pyo$)" | xargs rm -rf
pip cache dir