Caches/pip/http' or its parent directory is not owned by the current user and the cache has been ...

使用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
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容