|
From: Timothy D. <tim...@gm...> - 2014-02-23 01:36:54
|
Alex, Thanks for the information. I think python.org's version did this for me: $ cat ~/.bash_profile ... # Setting PATH for Python 2.7 # The orginal version is saved in .bash_profile.pysave PATH="/Library/Frameworks/Python.framework/Versions/2.7/bin:${PATH}" export PATH ... It turns out, my problem actually was in ipython / numpy. I reinstalled numpy to 1.8.0 and ipython was not recognizing it (similar to the matplotlib problem). I reinstalled ipython with "sudo pip install numpy" but it still recognized Apple's numpy. The solution was to install ipython via "easy_install ipython"-- then it was able to recognize the correct numpy, and correspondingly when I installed the latest version of matplotlib, ipython recognized the version I wanted. Thanks, Tim On Fri, Feb 21, 2014 at 6:12 PM, Alex Goodman <ale...@co...>wrote: > 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 > -- ------------------------------------------------- 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 ------------------------------------------------- |