使用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
网友评论