gpt4 book ai didi

python - 如何将Django升级到2.0版本

转载 作者:太空宇宙 更新时间:2023-11-04 09:15:03 33 4
gpt4 key购买 nike

<分区>

我一直在尝试升级我的 django 版本,但我一直在努力。

xxx@yyyyyy:~# python
Python 2.7.12 (default, Nov 20 2017, 18:23:56)
[GCC 5.4.0 20160609] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import django
>>> django.VERSION
(1, 11, 10, u'final', 0)

xxxx@yyyyyyy:~# pip install -U Django
The directory '/home/user/.cache/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 '/home/user/.cache/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 up-to-date: Django in /usr/local/lib/python2.7/dist-packages
Requirement already up-to-date: pytz in /usr/local/lib/python2.7/dist-packages (from Django)

xxxx@yyyyyy:~# pip --no-cache-dir install -U Django
Requirement already up-to-date: Django in /usr/local/lib/python2.7/dist-packages
Requirement already up-to-date: pytz in /usr/local/lib/python2.7/dist-packages (from Django)

如果 enter code here 它不是 2.0,而是 (1, 11, 10, u'final', 0),它怎么可能是最新的我的 django 版本

如果我执行 ls -s 以了解文件所有者:

xxxx@yyyyyyy:~# ls -s /home/gechichure/.cache/pip
total 12
4 http 4 selfcheck.json 4 wheels

不是 root 或我的用户管理员?!?!?!我不明白 django 它是如何工作的以及 pip 它是如何工作的:(

我需要升级到 2.0 版本!!

如有任何建议,我们将不胜感激。

问候!!!

33 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com