使用mac开发python pip install的时候一致出现问题,使用pycharm创建项目也是,翻遍谷歌百度也没找到正确的方法,最后。。

The directory '/Users/picasso/Library/Caches/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.The directory '/Users/picasso/Library/Caches/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.

最后粗暴的把/Users/picasso/Library/Caches/pip目录删除,完美解决
cd 到此目录

sudo rm -r pip

文章转载于:https://www.jianshu.com/p/2b1ec27a0e90
本博客所有文章如无特别注明均为原创。
复制或转载请以超链接形式注明转自起风了,原文地址《Caches/pip/http' or its parent directory is not owned by the current user and the cache has been …
   

还没有人抢沙发呢~