Modify Ubuntu .cache and pip cache default paths

Modify Ubuntu .cache and pip cache default paths

It is highly not recommended to modify the default .cache path unless you know the impact of the modification.

Execute the following command to modify it,

vi /root/.bashrc

--- 追加
export XDG_CACHE_HOME=/u01/.cache
export PIP_CACHE_DIR=/u01/.cache
---

end!

Guess you like

Origin blog.csdn.net/engchina/article/details/133064097