Python'un PIL'i kurmak istediğimde böyle bi hata ile karşılaşmaktayım.
gkhan@Gkan ~ $ pip install PIL --allow-unverified PIL --allow-all-external
Collecting PIL
PIL is potentially insecure and unverifiable.
Downloading http://effbot.org/media/downloads/PIL-1.1.7.tar.gz (506kB)
100% |████████████████████████████████| 507kB 1.5MB/s
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 20, in <module>
File "/tmp/pip-build-egu_a9q6/PIL/setup.py", line 182
print "--- using Tcl/Tk libraries at", TCL_ROOT
^
SyntaxError: Missing parentheses in call to 'print'
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-egu_a9q6/PIL
Mesajlar Birleştirildi.
Çözüm : Pillow kütüphanesini kurarak sonuca vardım.
pip install Pillow
yine aynı şekilde Image modülünü import edebiliyorum bu kütüphaneden.
from PIL import Image