PyCharm:安装软件包失败 [英] PyCharm: Install Packages Failed

查看:655
本文介绍了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:安装软件包失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆