我已经有python 2.7安装加3.6安装但是当我尝试安装Django它给我以下错误

时间:2017-04-06 05:20:55

标签: django python-3.x pip

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

1 个答案:

答案 0 :(得分:0)

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