V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
Livid
V2EX  ›  Python

在 Ubuntu 中通过 pip 安装 PIL

  •  
  •   Livid · 2013-08-30 13:34:25 +08:00 · 6705 次点击
    这是一个创建于 3900 天前的主题,其中的信息可能已经有所发展或是发生改变。
    6 条回复    1970-01-01 08:00:00 +08:00
    est
        1
    est  
       2013-08-30 13:39:11 +08:00
    sudo pip install Pillow
    ericFork
        2
    ericFork  
       2013-08-30 15:25:01 +08:00
    pillow 和 PIL 并不完全兼容,使用时小心点儿~
    aggron
        3
    aggron  
       2013-08-30 15:52:34 +08:00
    PIL已经4年没更新了吧, 推荐用pillow, 而且pillow已经支持python3了
    mengzhuo
        4
    mengzhuo  
       2013-08-30 16:07:42 +08:00
    编译jpeg和zlib都是坑啊!
    严重影响自动化部署
    alswl
        5
    alswl  
       2013-08-30 21:54:53 +08:00
    使用 Pillow,然后记得预先编译好 libjpeg / libweb 之类的,
    其实 Pillow 也有坑。
    Python 的部署向来头疼,Java 在这方面,不分青红皂白打成一个包,部署还是挺方便的。
    dreampuf
        6
    dreampuf  
       2013-08-30 23:22:30 +08:00
    pillow +1

    对于需要编译lib的库,只要目标环境一致,还是很好处理。
    Java 打一个包也只能是Java Code,如果真依赖了本地第三方类库,都一样会有麻烦
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2339 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 24ms · UTC 05:31 · PVG 13:31 · LAX 22:31 · JFK 01:31
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.