PyCharm:安装软件包失败

编程入门 行业动态 更新时间:2024-10-26 08:27:25
本文介绍了PyCharm:安装软件包失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我需要安装一些软件包. 无论我尝试什么方向,情况只会变得更糟.

I need some packages to be installed. No matter what direction I try, it only gets worse.

请帮助.

40:497:执行错误:目录 '/Users/doekewartena/Library/Caches/pip/http'或其父目录 不属于当前用户,并且缓存已被禁用. 请检查该目录的权限和所有者.如果执行 与sudo保持一致,您可能需要sudo的-H标志.目录 '/Users/doekewartena/Library/Caches/pip'或其父目录为 不属于当前用户,并且已禁用缓存轮. 检查该目录的权限和所有者.如果执行点子 使用sudo时,您可能需要sudo的-H标志.找不到版本 满足需求路径(从版本:)无匹配项 找到路径(1)的分布

40:497: execution error: The directory '/Users/doekewartena/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/doekewartena/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. Could not find a version that satisfies the requirement path (from versions: ) No matching distribution found for path (1)

推荐答案

您是否为用户检查了文件权限包?

Did you check file permissions pack for your user ?

您可以运行以下命令将目录(/Users/doekewartena/Library/Caches/pip)的所有权更改为当前用户(doekewartena):

You can run the below command to change the ownership of directory (/Users/doekewartena/Library/Caches/pip) to your current user (doekewartena) :

$ sudo chown -R doekewartena /Users/doekewartena/Library/Caches/pip

更多推荐

PyCharm:安装软件包失败

本文发布于:2023-11-06 07:56:28,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1563124.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:软件包   PyCharm

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!