[Matplotlib-users] Failing to install matplotlib with python 3

Alan alanwilter at gmail.com
Thu Jun 16 12:08:46 EDT 2016

Hi there,

I am not the admin so I have installed my own python 3.5.1 and I am using
pip3 to install all modules I need. I got all but matplotlib :-(

pip3 install -U matplotlib

                    Collecting matplotlib
  Using cached matplotlib-1.5.1.tar.gz
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-build-6eka4_fr/matplotlib/setup.py", line 167, in
        result = package.check()
      File "/tmp/pip-build-6eka4_fr/matplotlib/setupext.py", line 980, in
        min_version='1.2', version=version)
      File "/tmp/pip-build-6eka4_fr/matplotlib/setupext.py", line 459, in
        if (not is_min_version(version, min_version)):
      File "/tmp/pip-build-6eka4_fr/matplotlib/setupext.py", line 179, in
        return found_version >= expected_version
      File "/sw/arch/Test2/lib/python3.5/distutils/version.py", line 70, in
        c = self._cmp(other)
      File "/sw/arch/Test2/lib/python3.5/distutils/version.py", line 337,
in _cmp
        if self.version < other.version:
    TypeError: unorderable types: str() < int()

    Edit setup.cfg to change the build options

                matplotlib: yes [1.5.1]
                    python: yes [3.5.1 (default, Jun 16 2016, 11:03:02)
                            4.4.7 20120313 (Red Hat 4.4.7-11)]]
                  platform: yes [linux]

                     numpy: yes [version 1.11.0]
                  dateutil: yes [using dateutil version 2.5.3]
                      pytz: yes [using pytz version 2016.4]
                    cycler: yes [using cycler version 0.10.0]
                   tornado: yes [using tornado version 4.3]
                 pyparsing: yes [using pyparsing version 2.1.5]
                    libagg: yes [pkg-config information for 'libagg' could
                            be found. Using local copy.]
                  freetype: yes [version unknown]

Command "python setup.py egg_info" failed with error code 1 in

What am I missing here please?



PS. btw, with python 2.7.11 all went fine.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/matplotlib-users/attachments/20160616/bb062add/attachment.html>

More information about the Matplotlib-users mailing list