pip - PIL installation error on Mac OS Maverics inside virtual env -


i trying install pil inside virtual below

pip intall pil 

and got below error

downloading/unpacking pil   running setup.py egg_info package pil     warning: '' not valid package name; please use only.-separated package names in setup.py  installing collected packages: pil   running setup.py install pil     warning: '' not valid package name; please use only.-separated package names in setup.py     --- using frameworks @ /system/library/frameworks     building '_imagingft' extension     cc -dndebug -g -fwrapv -os -wall -wstrict-prototypes -qunused-arguments -qunused-arguments -pipe -wno-error=unused-command-line-argument-hard-error-in-future -i/system/library/frameworks/tcl.framework/headers -i/system/library/frameworks/tk.framework/headers -i/usr/local/include/freetype2 -ilibimaging -i/opt/local/include -i/users/user/.virtualenvs/proj/include -i/usr/local/include -i/usr/include -i/system/library/frameworks/python.framework/versions/2.7/include/python2.7 -c _imagingft.c -o build/temp.macosx-10.9-intel-2.7/_imagingft.o     _imagingft.c:73:10: fatal error: 'freetype/fterrors.h' file not found     #include <freetype/fterrors.h>              ^     1 error generated.     error: command 'cc' failed exit status 1     complete output command /users/user/.virtualenvs/proj/bin/python -c "import setuptools;__file__='/users/user/.virtualenvs/proj/build/pil/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /var/folders/x1/1bwt313j0qvgdh5pfzpbpvcw0000gn/t/pip-r5jsvs-record/install-record.txt --single-version-externally-managed --install-headers /users/user/.virtualenvs/proj/include/site/python2.7:     warning: '' not valid package name; please use only.-separated package names in setup.py  running install  running build  running build_py  running build_ext  --- using frameworks @ /system/library/frameworks  building '_imagingft' extension  cc -dndebug -g -fwrapv -os -wall -wstrict-prototypes -qunused-arguments -qunused-arguments -pipe -wno-error=unused-command-line-argument-hard-error-in-future -i/system/library/frameworks/tcl.framework/headers -i/system/library/frameworks/tk.framework/headers -i/usr/local/include/freetype2 -ilibimaging -i/opt/local/include -i/users/user/.virtualenvs/proj/include -i/usr/local/include -i/usr/include -i/system/library/frameworks/python.framework/versions/2.7/include/python2.7 -c _imagingft.c -o build/temp.macosx-10.9-intel-2.7/_imagingft.o  _imagingft.c:73:10: fatal error: 'freetype/fterrors.h' file not found  #include <freetype/fterrors.h>           ^  1 error generated.  error: command 'cc' failed exit status 1  ---------------------------------------- command /users/user/.virtualenvs/proj/bin/python -c "import setuptools;__file__='/users/user/.virtualenvs/proj/build/pil/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /var/folders/x1/1bwt313j0qvgdh5pfzpbpvcw0000gn/t/pip-r5jsvs-record/install-record.txt --single-version-externally-managed --install-headers /users/user/.virtualenvs/proj/include/site/python2.7 failed error code 1 in /users/user/.virtualenvs/proj/build/pil 

so how fix , can 1 let me know why throwing me error on new macbook air ?

i suggest try pillow, fork of pil. i've not tried in virtual machine on mac os x can this:

brew install libtiff libjpeg webp little-cms2  pip install pillow 

full details here: http://pillow.readthedocs.org/en/latest/installation.html#mac-os-x-installation


Comments

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

thorough guide for profiling racket code -