X

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 Python PIP 安裝遇到 site-packages is not writeable 解法

除了 site-packages is not writeable 的問題外,

使用 pip install --user <package-name> 遇到下述錯誤訊息:

deprecation: gpg 1.14.0-unknown has a non-standard version number. pip 24.1 will enforce this behaviour change. a possible replacement is to upgrade to a newer version of gpg or contact the author to suggest that they release a version with a conforming version number.

查了很久就不多說了,總之最後面的問題就是,pip 安裝的和 Debian 的 python3-gpg 套件不合,解法:

  • sudo apt remove python3-gpg

這個問題解掉後,再來安裝套件:pip install --user <package-name> 就全部正常了.. @.@a..

Tsung: 對新奇的事物都很有興趣, 喜歡簡單的東西, 過簡單的生活.
Related Post