Discussion:
[Matplotlib-users] Failing to install matplotlib with python 3
Alan
2016-06-16 16:07:17 UTC
Permalink
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
<module>
result = package.check()
File "/tmp/pip-build-6eka4_fr/matplotlib/setupext.py", line 980, in
check
min_version='1.2', version=version)
File "/tmp/pip-build-6eka4_fr/matplotlib/setupext.py", line 459, in
_check_for_pkg_config
if (not is_min_version(version, min_version)):
File "/tmp/pip-build-6eka4_fr/matplotlib/setupext.py", line 179, in
is_min_version
return found_version >= expected_version
File "/sw/arch/Test2/lib/python3.5/distutils/version.py", line 70, in
__ge__
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

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

REQUIRED DEPENDENCIES AND EXTENSIONS
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
not
be found. Using local copy.]
freetype: yes [version unknown]

----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in
/tmp/pip-build-6eka4_fr/matplotlib/

What am I missing here please?

Thanks,

Alan

PS. btw, with python 2.7.11 all went fine.
Eric Firing
2016-06-16 19:07:12 UTC
Permalink
Alan,

This mailing list is obsolete; please use matplotlib-***@python.org.

Your traceback looks vaguely familiar as something that has come up
before, but I don't have any more recollection than that. Suggestions:

1) Install your python environment the easy way via anaconda or
miniconda: https://www.continuum.io/downloads

2) If you are *sure* you don't want to do it that way, make sure you
have the most recent version of pip.

3) Likewise, install the most recent matplotlib. See attached message.

Eric
Post by Alan
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
File "<string>", line 1, in <module>
File "/tmp/pip-build-6eka4_fr/matplotlib/setup.py", line 167, in
<module>
result = package.check()
File "/tmp/pip-build-6eka4_fr/matplotlib/setupext.py", line 980,
in check
min_version='1.2', version=version)
File "/tmp/pip-build-6eka4_fr/matplotlib/setupext.py", line 459,
in _check_for_pkg_config
File "/tmp/pip-build-6eka4_fr/matplotlib/setupext.py", line 179,
in is_min_version
return found_version >= expected_version
File "/sw/arch/Test2/lib/python3.5/distutils/version.py", line 70,
in __ge__
c = self._cmp(other)
File "/sw/arch/Test2/lib/python3.5/distutils/version.py", line
337, in _cmp
TypeError: unorderable types: str() < int()
============================================================================
Edit setup.cfg to change the build options
BUILDING MATPLOTLIB
matplotlib: yes [1.5.1]
python: yes [3.5.1 (default, Jun 16 2016, 11:03:02)
[GCC
4.4.7 20120313 (Red Hat 4.4.7-11)]]
platform: yes [linux]
REQUIRED DEPENDENCIES AND EXTENSIONS
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 not
be found. Using local copy.]
freetype: yes [version unknown]
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in
/tmp/pip-build-6eka4_fr/matplotlib/
What am I missing here please?
Thanks,
Alan
PS. btw, with python 2.7.11 all went fine.
Matthew Brett
2016-06-16 19:10:45 UTC
Permalink
Hi,
Post by Alan
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
File "<string>", line 1, in <module>
File "/tmp/pip-build-6eka4_fr/matplotlib/setup.py", line 167, in
<module>
result = package.check()
File "/tmp/pip-build-6eka4_fr/matplotlib/setupext.py", line 980, in
check
min_version='1.2', version=version)
File "/tmp/pip-build-6eka4_fr/matplotlib/setupext.py", line 459, in
_check_for_pkg_config
File "/tmp/pip-build-6eka4_fr/matplotlib/setupext.py", line 179, in
is_min_version
return found_version >= expected_version
File "/sw/arch/Test2/lib/python3.5/distutils/version.py", line 70, in
__ge__
c = self._cmp(other)
File "/sw/arch/Test2/lib/python3.5/distutils/version.py", line 337, in
_cmp
TypeError: unorderable types: str() < int()
============================================================================
Edit setup.cfg to change the build options
BUILDING MATPLOTLIB
matplotlib: yes [1.5.1]
python: yes [3.5.1 (default, Jun 16 2016, 11:03:02)
[GCC
4.4.7 20120313 (Red Hat 4.4.7-11)]]
platform: yes [linux]
REQUIRED DEPENDENCIES AND EXTENSIONS
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
not
be found. Using local copy.]
freetype: yes [version unknown]
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in
/tmp/pip-build-6eka4_fr/matplotlib/
What am I missing here please?
Thanks,
Alan
PS. btw, with python 2.7.11 all went fine.
By the way does this:

python -m pip install --upgrade pip # upgrade to latest pip
pip install -f https://nipy.bic.berkeley.edu/manylinux -U matplotlib

work for you to install matplotlib 1.5.1?

Or this, to install 2.0 pre-release?

python -m pip install --upgrade pip # upgrade to latest pip
pip install -f https://nipy.bic.berkeley.edu/manylinux -U --pre matplotlib

Best,

Matthew
Alan
2016-06-16 19:14:21 UTC
Permalink
Thank guys, it was an old pkg-config in my PATH. It's now sorted.

Alan
Post by Alan
Hi,
Post by Alan
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
File "<string>", line 1, in <module>
File "/tmp/pip-build-6eka4_fr/matplotlib/setup.py", line 167, in
<module>
result = package.check()
File "/tmp/pip-build-6eka4_fr/matplotlib/setupext.py", line 980, in
check
min_version='1.2', version=version)
File "/tmp/pip-build-6eka4_fr/matplotlib/setupext.py", line 459, in
_check_for_pkg_config
File "/tmp/pip-build-6eka4_fr/matplotlib/setupext.py", line 179, in
is_min_version
return found_version >= expected_version
File "/sw/arch/Test2/lib/python3.5/distutils/version.py", line 70,
in
Post by Alan
__ge__
c = self._cmp(other)
File "/sw/arch/Test2/lib/python3.5/distutils/version.py", line
337, in
Post by Alan
_cmp
TypeError: unorderable types: str() < int()
============================================================================
Post by Alan
Edit setup.cfg to change the build options
BUILDING MATPLOTLIB
matplotlib: yes [1.5.1]
python: yes [3.5.1 (default, Jun 16 2016, 11:03:02)
[GCC
4.4.7 20120313 (Red Hat 4.4.7-11)]]
platform: yes [linux]
REQUIRED DEPENDENCIES AND EXTENSIONS
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
Post by Alan
not
be found. Using local copy.]
freetype: yes [version unknown]
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in
/tmp/pip-build-6eka4_fr/matplotlib/
What am I missing here please?
Thanks,
Alan
PS. btw, with python 2.7.11 all went fine.
python -m pip install --upgrade pip # upgrade to latest pip
pip install -f https://nipy.bic.berkeley.edu/manylinux -U matplotlib
work for you to install matplotlib 1.5.1?
Or this, to install 2.0 pre-release?
python -m pip install --upgrade pip # upgrade to latest pip
pip install -f https://nipy.bic.berkeley.edu/manylinux -U --pre matplotlib
Best,
Matthew
--
Alan Wilter SOUSA da SILVA, DSc
Senior Bioinformatician, UniProt
European Bioinformatics Institute (EMBL-EBI)
European Molecular Biology Laboratory
Wellcome Trust Genome Campus
Hinxton
Cambridge CB10 1SD
United Kingdom
Tel: +44 (0)1223 494588
Loading...