【问题标题】:I already have python 2.7 install plus 3.6 install but when I try to install Django it give me the following error我已经安装了 python 2.7 和 3.6,但是当我尝试安装 Django 时,它给了我以下错误
【发布时间】:2017-04-06 05:20:54
【问题描述】:
The directory '/Users/sandeepkrishnan/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/sandeepkrishnan/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.
Requirement already satisfied: django in /Library/Python/2.7/site-packages

【问题讨论】:

  • Requirement already satisfied: django in /Library/Python/2.7/site-packages。这在这里告诉您django 已经安装到 Python 2.7 中。

标签: django python-3.x pip


【解决方案1】:

您将 Django 安装到 Python 2.7 而不是 3.6,但您已经在 2.7 中安装了它。要在 Python 3.6 中安装它,请尝试 pip3 install django 看看是否可行。

【讨论】:

    猜你喜欢
    • 2021-07-15
    • 2018-07-20
    • 2012-03-29
    • 1970-01-01
    • 1970-01-01
    • 2020-03-15
    • 1970-01-01
    • 1970-01-01
    • 2019-10-14
    相关资源
    最近更新 更多