Pillow ImportError: ~/.jumbo/lib/python2.7/site-packages/PIL/_imaging.so: undefined symbol: TIFFSetWarningHandlerExt


問題描述:from PIL import Image報錯

環境:

Python 2.7.3

Centos 4.3

問題一:/.jumbo/lib/python2.7/site-packages/setuptools-1.1.4-py2.7.egg/pkg_resources.py:979: UserWarning: ~/.python-eggs is writable by group/others and vulnerable to attack when used with get_resource_filename. Consider a more secure location (set with .set_extraction_path or the PYTHON_EGG_CACHE environment variable).

解決:chmod g-wx ~/.python-eggs

這個問題網上有較多解答,修改對應文件權限即可

問題二: ImportError: ~/.jumbo/lib/python2.7/site-packages/PIL/_imaging.so: undefined symbol: TIFFSetWarningHandlerExt

某機器可運行,Pillow 5.1.0(Centos 6.3)

某機器import即報錯,Pillow 4.3.0(Centos 4.3)

分析:很多提示是首先確認Pillow與PIL沖突,需要先卸載PIL,確認兩台機器均無PIL安裝

pip list 

 

解決:感謝這篇文章回答者,嘗試有效

if your python >= 2.7 

try these:

pip install http://effbot.org/media/downloads/Imaging-1.1.6.tar.gz

感謝來源:http://queasy.me/programming/questions/47671664/python+pillow+_imagingso+undefined+symbol+tiffsetwarninghandlerext+error 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM