我使用创建 requirements.txt 文件pip freeze --local
现在,当我这样做时:pip install -r requirements.txt
它在旧版本之上安装新的 django。然后,我收到消息:
========
WARNING!
========
You have just installed Django over top of an existing
installation, without removing it first. Because of this,
your install may now include extraneous files from a
previous version that have since been removed from
Django. This is known to cause a variety of problems. You
should manually remove the
/usr/local/lib/python2.7/site-packages/django
directory and re-install Django.
如果我安装了旧版本,我希望它进行升级。我该如何管理?