I am trying to install latest version of six python package but I have following issues. Can\'t get rid of six 1.4.1 in mac OSX 10.10.2
sudo pip install six
Try with pip2 its work for me pip2 install -U six
Your pip binary belongs to /usr/local/bin/python, whereas python points to /usr/bin/python. As a consequence
pip install --upgrade six
will install to /usr/local/bin/python.
The command below will make sure that the right version of pip is used:
python -m pip install --upgrade six
In the end, the problem for me was that I was using the IPython shell.
which ipython returned /usr/local/bin/ipython and upon inspection this file declared at the top #!/usr/bin/python, which seemed to be circumventing all my best efforts to use the correct python location.
Simply changing this line #!/usr/local/bin/python to point to the correct python version then meant IPython used the correct six module.
Mac OS X's default python is installed as a framework.
Under the framework directory, there is an 'Extras' directory and six package is already placed there.
/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/six.py
According to the description (https://github.com/MacPython/wiki/wiki/Which-Python), /System/Library/Frameworks/Python.framework/Versions/2.7/Extras is listed before /Library/Python/2.7/site-packages in module search path.
This means all packages already exists in /System/Library/Frameworks/Python.framework/Versions/2.7/Extras can't upgrade.
Maybe you should install python manually and not to use default python.