| | 73 | Remove any old versions of Django |
|---|
| | 74 | ================================= |
|---|
| | 75 | |
|---|
| | 76 | If you are upgrading your installation of Django from a previous version, |
|---|
| | 77 | you will need to uninstall the old Django version before installing the |
|---|
| | 78 | new version. |
|---|
| | 79 | |
|---|
| | 80 | If you installed Django using ``setup.py install``, uninstalling |
|---|
| | 81 | is as simple as deleting the ``django`` directory from your Python |
|---|
| | 82 | ``site-packages``. |
|---|
| | 83 | |
|---|
| | 84 | If you installed Django from a Python Egg, remove the Django ``.egg` file, |
|---|
| | 85 | and remove the reference to the egg in the file named ``easy-install.pth``. |
|---|
| | 86 | This file should also be located in your ``site-packages`` directory. |
|---|
| | 87 | |
|---|
| | 88 | .. admonition:: Where are my ``site-packages`` stored? |
|---|
| | 89 | |
|---|
| | 90 | The location of the ``site-packages`` directory depends on the operating |
|---|
| | 91 | system, and the location in which Python was installed. However, the |
|---|
| | 92 | following locations are common: |
|---|
| | 93 | |
|---|
| | 94 | * If you're using Linux: ``/usr/lib/python2.X/site-packages`` |
|---|
| | 95 | |
|---|
| | 96 | * If you're using Windows: ``C:\Python2.X\lib\site-packages`` |
|---|
| | 97 | |
|---|
| | 98 | * If you're using MacOSX: ``/Library/Python2.X/site-packages`` |
|---|
| | 99 | |
|---|