Search code examples
pythonpython-2.7pipsix

Python2.7: ImportError: six 1.3 or later is required; you have 1.2.0


Got this error when importing matplotlib.pyplot. But I have checked the version of six installed using pip list, and it returns version 1.9.0. And when I checked six.__version__, it returns 1.2.0.

Could any one help me?


Solution

  • There is probably a bug somewhere, but a quick and dirty work around was the following:

    pip install six==1.8.0