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.
···
On Fri, Feb 21, 2014 at 6:12 PM, Alex Goodman <alex.goodman@…4442…> 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
–
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
On Fri, Feb 21, 2014 at 4:58 PM, Timothy Duly <timduly4@…287…> wrote:
Paul,
Do you know how to to get pip install on python.org’s version?
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
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users
–
Alex Goodman
Graduate Research Assistant
Department of Atmospheric Science
Colorado State University
On Fri, Feb 21, 2014 at 5:53 PM, Paul Hobson <pmhobson@…287…> 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.
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
–
On Fri, Feb 21, 2014 at 2:08 PM, Timothy Duly <timduly4@…287…> 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
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users