You have to remove the older versions of setuptools.
Sometime it is not so easy and it might need to try:
- removing it by installation program you used to install it (
brew
?,apt-get
...) - deleting it manually from directories incl. scripts, which are installed in your system (finding them by
which
setuptools) - finally you shall reinstall
setuptools
If I remember well, installation instructions for setuptools are asking to remove old version first.
I would even recommend:
- remove the old
setuptools
completely - remove the latest
setuptools
completely - remove
pip
- install
pip
by means ofget_pip.py
as described here: http://pip.readthedocs.org/en/latest/installing.html#install-pip - install setuptools by
$ pip install setuptools
Even if these steps sound complex, you shall do that, otherwise you will run into strange problems sooner or later.