|
From: Alex G. <ale...@co...> - 2014-02-22 00:13:13
|
Hi Tim, Whenever you have two python versions installed to one machine, it is generally a good practice to set your PATH environment variable to the directory where the python executable you want to use currently lies, and make it permanent by adding it to your ~/.bash_profile file (on MacOSX). Say your python.org version of python was installed in /something/bin. Then add the following line to your ~/.bash_profile: export PATH=/something/bin:$PATH Then run these commands: source ~/.bash_profile which python which pip If the output is /something/bin, then you are good to go; pip should then install matplotlib in the correct place. Hope that helps. Thanks, Alex On Fri, Feb 21, 2014 at 4:58 PM, Timothy Duly <tim...@gm...> wrote: > Paul, > > Do you know how to to get pip install on python.org's version? > > Thanks, > Tim > > > On Fri, Feb 21, 2014 at 5:53 PM, Paul Hobson <pmh...@gm...> wrote: > >> It appears that you have two different version of python installed >> (Apple's 2.7.3 and python.org's 2.7.5). You have to install all >> third-party packages to the correct one. It appears pip in acting on >> Apple's python. >> >> >> On Fri, Feb 21, 2014 at 2:08 PM, Timothy Duly <tim...@gm...> wrote: >> >>> Hello, >>> >>> I recently upgraded matplotlib, which was relatively simple: >>> >>> sudo pip install matplotlib --upgrade >>> >>> I checked to make sure I did indeed upgrade: >>> >>> [~]$ python >>> Python 2.7.3 (v2.7.3:70274d53c1dd, Apr 9 2012, 20:52:43) >>> [GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin >>> Type "help", "copyright", "credits" or "license" for more information. >>> >>> import matplotlib; matplotlib.__version__ >>> '1.3.1' >>> >>> Success. However, when I do the same in IPython, I get the old version: >>> >>> [~]$ ipython --pylab >>> Python 2.7.5 (default, Aug 25 2013, 00:04:04) >>> Type "copyright", "credits" or "license" for more information. >>> IPython 1.2.0 -- An enhanced Interactive Python. >>> ? -> Introduction and overview of IPython's features. >>> %quickref -> Quick reference. >>> help -> Python's own help system. >>> object? -> Details about 'object', use 'object??' for extra details. >>> Using matplotlib backend: MacOSX >>> In [1]: import matplotlib; matplotlib.__version__ >>> Out[1]: '1.1.1' >>> >>> Anyone know why this is the case? How do I point IPython to the newest >>> version of matplotlib? >>> >>> I tried googling, but wasn't sure how to zero in on the answer with a >>> search. Also, I'm not sure if this question is best suited for IPython >>> people. >>> >>> Thanks, >>> Tim >>> >>> >>> ------------------------------------------------------------------------------ >>> Managing the Performance of Cloud-Based Applications >>> Take advantage of what the Cloud has to offer - Avoid Common Pitfalls. >>> Read the Whitepaper. >>> >>> http://pubads.g.doubleclick.net/gampad/clk?id=121054471&iu=/4140/ostg.clktrk >>> _______________________________________________ >>> Matplotlib-users mailing list >>> Mat...@li... >>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users >>> >>> >> > > > -- > ------------------------------------------------- > Timothy M. Duly > Graduate Research Assistant > Remote Sensing & Space Sciences Group > Department of Electrical and Computer Engineering > University of Illinois at Urbana-Champaign > airglow.csl.illinois.edu > ------------------------------------------------- > > > ------------------------------------------------------------------------------ > Managing the Performance of Cloud-Based Applications > Take advantage of what the Cloud has to offer - Avoid Common Pitfalls. > Read the Whitepaper. > > http://pubads.g.doubleclick.net/gampad/clk?id=121054471&iu=/4140/ostg.clktrk > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > > -- Alex Goodman Graduate Research Assistant Department of Atmospheric Science Colorado State University |