I'm trying to install Pillow 3.1 on Windows. Per the instructions, I should be able to just type in:
pip install Pillow
But I get:
ValueError: jpeg is required unless explicitly disabled using --disable-jpeg, aborting
Because now (starting with versions after 3.0 I think?) libjpeg is required for pillow to be installed. I don't know how to do that magic on Windows. Maybe install Ming or something. But I was really hoping for a simple pip install.
I can disable these options through the intuitive command:
pip install --upgrade pillow --global-option="build_ext" --global-option="--disable-jpeg" --global-option="--disable-zlib"
But then the build fails because I don't have Visual C++ installed.
Yes, I can install Pillow by downloading it from the unofficial repository list. But is there a way to do it with pip on Windows without a lot of extra installs?
libjpeg
?libjpeg
, the Visual C++ 2008 compiler, and if you want support for things like PNG, TIFF, etc., you will also need to installzlib
,libtiff
, etc. I'd recommend installing from the prebuilt binary from UCI if possible. The alternative if you really want to install with pip without installing a bunch of extras is to pass all the flags to disable everything that requires an external library (though that means your Pillow install probably will be rather featureless).pip
install, so not an answer, but would you consider installing it withconda
? This works out-of-the-box on my machine (with anaconda):conda create -n pillow-test pillow
.