Python Django升级成功,然后恢复
我的django版本是1.1Python Django升级成功,然后恢复,python,django,Python,Django,我的django版本是1.1 rgross@fun:~$ python Python 2.6.5 (r265:79063, Apr 16 2010, 13:57:41) [GCC 4.4.3] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import django >>> print django.VERSION (1, 1, 1,
rgross@fun:~$ python
Python 2.6.5 (r265:79063, Apr 16 2010, 13:57:41)
[GCC 4.4.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import django
>>> print django.VERSION
(1, 1, 1, 'final', 0)
>>> quit()
rgross@fun:~$
所以,我
再次检查版本,非常成功,我得到了django 1.3
rgross@fun:/tmp/Django-1.3$ python
Python 2.6.5 (r265:79063, Apr 16 2010, 13:57:41)
[GCC 4.4.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import django
>>> print django.VERSION
(1, 3, 0, 'final', 0)
但是,当我打开一个新的终端窗口并检查版本时,我发现我的版本升级不是持久的,新的终端会看到版本1.1
知道发生了什么吗?问题的原因是我还通过apt get安装了django 解决:
sudo apt-get remove python-django
sudo apt-get remove python-django