pycharm 如何更新包 您所在的位置:网站首页 pycharm怎么更新到最新版本 pycharm 如何更新包

pycharm 如何更新包

2022-10-12 00:33| 来源: 网络整理| 查看: 265

今天,我在我的macos10.11.6机器上安装了PyCharm Community 2016.2。在

在“首选项->项目解释器”中,我的解释器是python 2.7.10,位于以下位置:

/系统/库/框架/Python.framework/Versions/2.7/垃圾箱/Python2.7

当我尝试升级包时(通过PyCharm的界面),它会提示我输入管理员密码,我输入密码,然后失败,输出以下错误:40:524: execution error: The directory '/Users/Luke/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.

在google上搜索,我找到了StackOverflow建议here,建议我从终端运行以下命令(我的用户是“Luke”):$ sudo chown -R Luke /Users/Luke/Library/Caches/pip

我这么做了,但是有个错误说没有这样的文件或目录。在

所以我查了一下,确实没有这样的目录。那么,我该怎么办?也许某个地方的环境变量是错的?但我不知道在哪里。在



【本文地址】

公司简介

联系我们

今日新闻

    推荐新闻

    专题文章
      CopyRight 2018-2019 实验室设备网 版权所有