Re: [pystatsmodels] Trouble installing pandas 0.11 with llvm-gcc-4.2 error

324 views
Skip to first unread message

Wes McKinney

unread,
Apr 25, 2013, 12:57:48 PM4/25/13
to pystat...@googlegroups.com
On Thu, Apr 25, 2013 at 2:26 AM, Jason <wirth...@gmail.com> wrote:
> For some reason I can't install Pandas 0.11, I get an error:
>
> sudo pip install pandas
> ...
> error: command 'llvm-gcc-4.2' failed with exit status 1
>
> Here's a link to the complete install log.
> (https://www.dropbox.com/s/k32qepvrtagpdjh/pandas_install.log)
>
> This is on OSX 10.7. 5, I updated my XCode and installed the command line
> tools. Also, cython is currently installed.
>
> Thanks!

What version of NumPy are you running?

Jason Wirth

unread,
Apr 25, 2013, 4:10:49 PM4/25/13
to pystat...@googlegroups.com
Good question...

I did "pip install numpy" so I thought I was current but it turns out I had two installs.

    - 1.5.1 in /System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/numpy

    - 1.7.1 in /Library/Python/2.7/site-packages/numpy

numpy.__version__ showed I was using 1.5.1.

I'm freeing myself from an EPD Python, so perhaps that's why the 1.5.1 is there.

I made sure to add "/Library/Python/2.7/site-packages" to my PYTHONPATH. After that I was using 1.7.1.

However, "sudo pip install pandas" still gives "error: command 'llvm-gcc-4.2' failed with exit status 1"



--
Jason Wirth
    213.675.5294
    wirth...@gmail.com

Wes McKinney

unread,
Apr 25, 2013, 4:21:31 PM4/25/13
to pystat...@googlegroups.com
You're definitely going to have to nuke your NumPy 1.5.1 install. Or
could just install a fresh free Anaconda or EPD (now Canopy).

- Wes

Jason Wirth

unread,
Apr 25, 2013, 4:48:17 PM4/25/13
to pystatsmodels
Success! Thanks!

I guess that numpy 1.5.1 directory lying around caused the all the problems. I guess I need to upgrade my NumPy to 1.8.

~ $ python
Python 2.7.1 (r271:86832, Jun 16 2011, 16:59:05)
[GCC 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2335.15.00)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import pandas
RuntimeError: module compiled against API version 8 but this version of numpy is 7
>>> pandas.__version__
'0.11.0'
>>>


EPD was great when I was starting out, but after a while I experienced a bunch of package conflicts, now I'm a little weary of the kitchen sink approach. Although, I might try Anaconda in the future, it seems a little different and I'm particularly interested in their GPU stuff.





--
Jason Wirth
    213.675.5294
    wirth...@gmail.com


Reply all
Reply to author
Forward
0 new messages