** The following information is out of date and cannot be executed at this time. ** **
Please see here for details. Pip \ | Open Data and Programming
After all, it seems that PIL can no longer be entered with pip.
It seems that from some version of pip, --allow-external
and --allow-unverified
are now deprecated
.
You can use the pillow quietly, right?
pyenv
I have set the environment withpyenv local hogehoge
And thenpyenv activate
In the project I'm doingpip install pil
Is moss.
Furthermore, it was a two-stage mechanism, so a memo
pip install PIL --allow-external PIL --allow-unverified PIL
ln -s / usr / local / include / freetype2 / usr / local / include / freetype
$ pip install PIL
It will be moss
Downloading/unpacking PIL
Could not find any downloads that satisfy the requirement PIL
Some insecure and unverifiable files were ignored (use --allow-unverified PIL to allow).
Cleaning up...
No distributions at all found for PIL
Storing debug log for failure in /Users/jasper/.pip/pip.log
It was written here http://stackoverflow.com/questions/21242107/pip-install-pil-dont-install-into-virtualenv
pip install PIL --allow-external PIL --allow-unverified PIL
I felt something different from what I was doing
pip install PIL --allow-external PIL --allow-unverified PIL
I'm glad I made progress with, but I can't install it yet
building '_imagingft' extension
gcc -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/System/Library/Frameworks/Tcl.framework/Headers -I/System/Library/Frameworks/Tk.framework/Headers -I/usr/local/include/freetype2 -IlibImaging -I/usr/local/opt/pyenv/versions/inblue/include -I/usr/local/include -I/usr/include -I/usr/local/opt/pyenv/versions/2.6.8/include/python2.6 -c _imagingft.c -o build/temp.macosx-10.4-x86_64-2.6/_imagingft.o
_imagingft.c:73:10: fatal error: 'freetype/fterrors.h' file not found
#include <freetype/fterrors.h>
^
1 error generated.
error: command 'gcc' failed with exit status 1
----------------------------------------
Cleaning up...
Command /usr/local/opt/pyenv/versions/inblue/bin/python -c "import setuptools, tokenize;__file__='/usr/local/var/lib/pyenv/versions/inblue/build/PIL/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('
', '
'), __file__, 'exec'))" install --record /var/folders/10/1gcb6yqd4m14g9qr7s0lztg40000gn/T/pip-0bcmkN-record/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/opt/pyenv/versions/inblue/include/site/python2.6 failed with error code 1 in /usr/local/var/lib/pyenv/versions/inblue/build/PIL
Storing debug log for failure in /Users/jasper/.pip/pip.log
do not know. Google
This is true, but not. Put in Pillow. http://stackoverflow.com/questions/23996756/pil-installation-error-on-mac-os-maverics-inside-virtual-env
What I want to put in is PIL
Further google
It's like that. http://stackoverflow.com/questions/20325473/error-installing-python-image-library-using-pip-on-mac-os-x-10-9
I just put a symbolic link, and there was no linked file, so I thought I could get it back if I just did it.
ln -s /usr/local/include/freetype2 /usr/local/include/freetype
Yes. Successful installation.
pip install PIL --allow-external PIL --allow-unverified PIL
2014/11/20 Addendum: The cause was discovered by receiving a comment from @shitsyndrome.
Since 1.5 of pip, the default behavior has changed, and it seems that you need to specify it explicitly if you want to download from an external host (other than pypi.python.org). http://pip.readthedocs.org/en/latest/reference/pip_install.html#externally-hosted-files
Recommended Posts