Hello all,
I'm new to python and Macs in general, and I'm having a heck of a time installing PIL (or getting Python to recognize it). First some background (not sure how much of this will be pertinent):
I'm using OS 10.5.8. In installing python I may have botched things up from the start since I didn't know what I was doing. OS 10.5.8 comes with some version of python (2.5 I think?) but everyone recommends updating so I installed 2.7. Unfortunately when I tried to install numpy and scipy I found that this is not possible on 2.7 without a significant amount of rigamarole. So I've downloaded 2.6.6 and now have three versions of python. 2.6.6 is the default one in bash. I'm also fairly certain I have some kind of a fortran compiler because once upon a time I did compile a single piece of fortran code, however I'm not sure if it's setup correctly.
I'm now trying to install PIL 1.1.7, following the instructions in the readme. When I type
the installation seems to start and I get a whole bunch of troubling messages.
Here's a sampling of them:
it concludes with the following:
I've tried following the suggestions in the readme of trying to make sure i have necessary libraries and installing stuff with fink, but to no avail. I have a feeling numerous things are messed up: compilers, file locations, bash file, etc. what's the easiest way to get things going? I'm definitely willing to reinstall python, edit my bash, whatever needs to be done to get things going. The caveat is of course that I could really use detailed directions of how to do these things.
Your time and advice is much appreciated!
I'm new to python and Macs in general, and I'm having a heck of a time installing PIL (or getting Python to recognize it). First some background (not sure how much of this will be pertinent):
I'm using OS 10.5.8. In installing python I may have botched things up from the start since I didn't know what I was doing. OS 10.5.8 comes with some version of python (2.5 I think?) but everyone recommends updating so I installed 2.7. Unfortunately when I tried to install numpy and scipy I found that this is not possible on 2.7 without a significant amount of rigamarole. So I've downloaded 2.6.6 and now have three versions of python. 2.6.6 is the default one in bash. I'm also fairly certain I have some kind of a fortran compiler because once upon a time I did compile a single piece of fortran code, however I'm not sure if it's setup correctly.
I'm now trying to install PIL 1.1.7, following the instructions in the readme. When I type
Code:
python setup.py install
Here's a sampling of them:
Code:
/usr/include/architecture/ppc/math.h:675: warning: conflicting types for built-in function 'scalb' _imaging.c:2907: warning: initialization from incompatible pointer type
Code:
ld warning: in /sw/lib/libjpeg.dylib, file is not of required architecture ld: in /Developer/SDKs/MacOSX10.4u.sdk/usr/local/lib/libgcc_s.1.dylib, missing required architecture ppc in file for architecture ppc collect2: ld returned 1 exit status lip: can't open input file: /car/folders/-0/-0LrikNVFoq8-dU1w90elIE+++TI/-Tmp-//ccLF4Kkn.out (No such file or directory) error: command 'gcc-4.0' failed with exit status 1
Your time and advice is much appreciated!