簡體   English   中英

無法使用pip安裝Python Imaging Library

[英]Can't install Python Imaging Library using pip

嘗試使用PIP安裝Python映像庫(PIL)時,安裝失敗,並顯示以下錯誤:

SyntaxError: invalid syntax
Complete output from command python setup.py egg_info:
Traceback (most recent call last):

File "<string>", line 16, in <module>
File "/tmp/pip_build_root/pil/setup.py", line 182
print "--- using Tcl/Tk libraries at", TCL_ROOT

有人還面臨着同樣的問題,但所提供的解決方案是為一個不同的庫,對我沒有工作。 在官方郵件列表中有一個舊條目(2003)討論了問題,但沒有提供解決方案,要求降級PIL並稍后提供修復(我不想降級)。

pip.log文件在這里提供: http ://pastebin.com/YeBLmMBm

有一個名為Pillow的PIL新分支,對於很多人來說,它似乎比PIL更加一致。 它也很容易安裝。 這里 (信息/文檔)和這里 (安裝)。 雖然我認為pip install Pillow應該可行

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM