The directory '*' or its parent directory is not owned by the current user
生活随笔
收集整理的這篇文章主要介紹了
The directory '*' or its parent directory is not owned by the current user
小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.
使用sudo pip install …的時候出現(xiàn)下面一段warning:
WARNING: The directory '/home/alex/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag. WARNING: The directory '/home/alex/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.翻譯一下就是:
當前用戶不擁有目錄“ /home/stone/.cache/pip/http”或其父目錄,并且緩存已被禁用。 請檢查該目錄的權限和所有者。 如果使用sudo執(zhí)行pip,則可能需要sudo的-H標志。 目錄’/home/stone/.cache/pip’或它的父目錄不屬于當前用戶,并且緩存輪已被禁用。 檢查該目錄的權限和所有者。 如果使用sudo執(zhí)行pip,則可能需要sudo的-H標志。
解決方案: 在sudo 后面添加-H
sudo -H pip install ...... 與50位技術專家面對面20年技術見證,附贈技術全景圖總結
以上是生活随笔為你收集整理的The directory '*' or its parent directory is not owned by the current user的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: Ubuntu + pip + Pytho
- 下一篇: IDEA 运行键是灰色