Debian Linux 11 PIP 安裝遇到 site-packages is not writeable 解法

Debian Linux Python PIP 在安裝某些套件的時候(pip install package),遇到這個錯誤訊息:

defaulting to user installation because normal site-packages is not writeable normal site-packages is not writeable

於是直接把這個資料夾搬走看看(chmod 777 這些當然都測試過了)

mv ~/.local/lib/python3.9/site-packages ~/.local/lib/python3.9/site-packages2

然後在重新安裝之類的,都遇到一樣無法寫入的問題~

閱讀全文〈Debian Linux 11 PIP 安裝遇到 site-packages is not writeable 解法〉