Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #97324 > unrolled thread

compiling matplotlib in virtual env

Started byRolston Jeremiah <gtec.oses@gmail.com>
First post2015-10-01 23:15 -0700
Last post2015-10-02 10:42 +0200
Articles 3 — 3 participants

Back to article view | Back to comp.lang.python


Contents

  compiling matplotlib in virtual env Rolston Jeremiah <gtec.oses@gmail.com> - 2015-10-01 23:15 -0700
    Re: compiling matplotlib in virtual env Miki Tebeka <miki.tebeka@gmail.com> - 2015-10-01 23:43 -0700
    Re: compiling matplotlib in virtual env Laura Creighton <lac@openend.se> - 2015-10-02 10:42 +0200

#97324 — compiling matplotlib in virtual env

FromRolston Jeremiah <gtec.oses@gmail.com>
Date2015-10-01 23:15 -0700
Subjectcompiling matplotlib in virtual env
Message-ID<a52bc570-1a9e-4b67-8e56-9022c8170500@googlegroups.com>
Hello everyone,

I been trying to compile matplotlib in a python3.4 virtual env using 
pip version 1.7 on Fedora 22. I am in about 3 weeks learning python 
and Django so I am not clear on the error response to:


commmand
=========

pip3 install matplotlib


error message
=============


Traceback (most recent call last):
      File "<string>", line 20, in <module>
      File "/tmp/pip-build-b_yuukm4/matplotlib/setup.py", line 155, in <module>
        result = package.check()
      File "/tmp/pip-build-b_yuukm4/matplotlib/setupext.py", line 961, in check
        min_version='2.3', version=version)
      File "/tmp/pip-build-b_yuukm4/matplotlib/setupext.py", line 445, in _check_for_pkg_config
        if (not is_min_version(version, min_version)):
      File "/tmp/pip-build-b_yuukm4/matplotlib/setupext.py", line 173, in is_min_version
        return found_version >= expected_version
      File "/usr/lib64/python3.4/distutils/version.py", line 76, in __ge__
        c = self._cmp(other)
      File "/usr/lib64/python3.4/distutils/version.py", line 343, in _cmp
        if self.version < other.version:
    TypeError: unorderable types: str() < int()
    
    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-b_yuukm4/matplotlib


Appreciate  your help
thanks

rjae


[toc] | [next] | [standalone]


#97325

FromMiki Tebeka <miki.tebeka@gmail.com>
Date2015-10-01 23:43 -0700
Message-ID<fef3dfce-a640-4253-9087-99aa92ec2763@googlegroups.com>
In reply to#97324
> I been trying to compile matplotlib in a python3.4 virtual env using 
> pip version 1.7 on Fedora 22. I am in about 3 weeks learning python 
> and Django so I am not clear on the error response to:
> ...
>       File "/usr/lib64/python3.4/distutils/version.py", line 343, in _cmp
>         if self.version < other.version:
>     TypeError: unorderable types: str() < int()
Looks like a bug in distuils (which is a package used by pip). Maybe you can upgrade to a newer version of distutils? (pip3 install -U distutils) and try again?

As a side note, I find using conda to install scipy related packages a much easier way.

[toc] | [prev] | [next] | [standalone]


#97328

FromLaura Creighton <lac@openend.se>
Date2015-10-02 10:42 +0200
Message-ID<mailman.329.1443775353.28679.python-list@python.org>
In reply to#97324
Lots of egg problems can be fixed if you pip install this
package first.

https://pypi.python.org/pypi/ez_setup

However, you are trying to install matplotlib.
Your distro should have it already as a package (python-matplotlib
perhaps?  python3-matplotlib perhaps?) and you may want to get
it from there.  If you don't want to get it from there, you may
want to use conda instead of pip/easy_install and so on.
http://conda.pydata.org/docs/intro.html

If the scientific python stack, and not just matplotlib is in
your future, just use conda.  It is so much easier.

Laura

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web