When I install PIL using easy_install or buildout, it is set in such a way that I have to do the “import image” and not “from the import PIL image”.
However, if I do "apt-get install python-imaging" or use "pip -E test_pil install PIL", everything works fine.
Here are examples of how I am trying to install PIL using virtualenv:
# virtualenv --no-site-packages test_pil # test_pil/bin/easy_install PIL # test_pil/bin/python Python 2.5.1 (r251:54863, Feb 6 2009, 19:02:12) [GCC 4.0.1 (Apple Inc. build 5465)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> import PIL Traceback (most recent call last): File "<stdin>", line 1, in <module> ImportError: No module named PIL
I see that the easy_install package is PIL in Egg, but PIP is not. Same with buildbot, it uses eggs.
How could I properly install PIL using easy_install or buildout?
python pip easy-install python-imaging-library buildout
Alexander Artemenko Mar 21 '10 at 0:19 2010-03-21 00:19
source share