krotthereal.blogg.se

Mac python install pil
Mac python install pil




mac python install pil
  1. #Mac python install pil mac os x#
  2. #Mac python install pil update#
  3. #Mac python install pil upgrade#
  4. #Mac python install pil software#

The first three and emerge run off of setup.py, the others are packages of one form or another.

mac python install pil

It can be installed in virtualenvs, or not. Off the top of my head, Pillow can be installed with: setuptools, easy_install, pip. I'd say that most installs are a goopy mess of stuff layered on top of each other.

#Mac python install pil mac os x#

If you’re a fink person, you might find Kill PIL - The Python Imaging Library Headache or Building PIL on Mac OS X helpful.I think that 'most' and 'typical' are overstating it.a message by Christopher Barker to the Image-SIG list.a comment on a blog post about Installing PIL on OS X 10.5.3.I used the following references in tracking this information down: With luck, you should now be ready to go! References

#Mac python install pil upgrade#

The complete set of commands then is: sudo port upgrade libxml2 +universal With that done, setup.py should be able to build and install PIL.

mac python install pil

#Mac python install pil update#

I had to update the following packages (in order) before PIL would build: Updating an already installed package as a universal is similar: sudo port upgrade apackage +universal All you need to do is add the +universal variant to it like so: sudo port install apackage +universal Installing a universal version of a Macports package is pretty easy. If you use something else, you’ll need to figure it out yourself. I’ll give instructions that I used and for. The second option is a little bit more painful, because there are a number of libraries that you may need to reinstall as Universal. When it completes, simply run python2.6 setup.py build again and it’ll take up where it left off and you’ll soon be ready to python2.6 setup.py install. Then delete the -arch ppc (if you’re on an x86 machine) or the -arch i386 (if you’re on a PPC) and run the edited command.

mac python install pil

Simply copy the gcc command that failed (it starts “gcc” and wraps over the next five lines) and paste it into your Terminal. The first option is the quickest, so I’ll describe it first. Install universal versions of all of the libraries that PIL depends on (likely to be slow and tedious but not particularly difficult).Build this file manually without support for PPC (quick and easy) or.This is a relatively straight-forward error: it’s complaining that a library it needs doesn’t support an architecture that it’s trying to compile for, namely PPC. Lipo: can’t open input file: /var/folders/nk/nka0oBX-Gsy7r+w2hIFEfk+++TI/-Tmp-//ccMSWw7I.out (No such file or directory)Įrror: command ‘gcc’ failed with exit status 1 Ld: in /opt/local/lib/libxml2.2.dylib, file is not of required architecture for architecture ppc If your system is like mine, the build process will error out like this: Unpack it as usual and then try to build it in the usual distutils fashion: tar xzf Imaging-1.1.6.tar.gz & \ The first thing to do is download the source code from the PIL download page. This post provides a few pointers to getting PIL working on OS X 10.5.6 with the Python 2.6 package and a bunch of libraries installed using Macports. Thankfully, it’s not too hard to figure out the problems and get it built, installed and passing the tests. The most recent trouble I’ve had is in installing Python Imaging Library (henceforth PIL).

#Mac python install pil software#

While it’s generally pretty easy to build and install new software on Linux and BSD-based systems, it can be something of a pain in the arse to get some things to build on OS X, particularly when the multiple-architectures stuff comes into play. Like many other developers, I work on a variety of UNIX-like operating systems including Linuxen, BSDs, and Mac OS X.






Mac python install pil