【python】使用pip 安装时If executing pip with sudo, you may want sudo‘s -H flag

网友投稿 348 2022-08-27


【python】使用pip 安装时If executing pip with sudo, you may want sudo‘s -H flag

报错内容

WARNING: The directory '/Users/zhouyueyang/Library/Caches/pip/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 '/Users/zhouyueyang/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.

解决方法

sudo -H pip install flask(库名)


版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。

上一篇:Api接口文档管理工具,你知道哪些呢?接口文档管理工具 RAP
下一篇:作为后端,如何高效优雅地编写接口文档,刷脸支付后端接口
相关文章

 发表评论

暂时没有评论,来抢沙发吧~