我正在尝试使用 pip
安装 Django 版本 1.3.3。我已经卸载了版本号为 1.5.1 的 Django,并运行了以下命令:
sudo pip install django==1.3.3
当我运行它时,得到的响应如下:
$ sudo pip install django==1.3.3
Downloading/unpacking django==1.3.3
Running setup.py egg_info for package django
warning: no previously-included files matching '__pycache__' found under directory '*'
warning: no previously-included files matching '*.py[co]' found under directory '*'
Requested django==1.3.3, but installing version 1.5.1
Installing collected packages: django
Running setup.py install for django
warning: no previously-included files matching '__pycache__' found under directory '*'
warning: no previously-included files matching '*.py[co]' found under directory '*'
changing mode of /usr/local/bin/django-admin.py to 755
Successfully installed django
Cleaning up...
让我有点不爽的是,它告诉我它知道我想要1.3.3版本......但是它还是会安装1.5版本。我怎么能告诉它我真的想要1.3.3版本呢?
pip uninstall django
。 - Hoopdady