python3.4.2 安裝Pillow


Python 3.x 安裝Pillow
給Python安裝Pillow非常簡單,使用pip或easy_install只要一行代碼即可。

在命令行使用PIP安裝: pip install Pillow
或在命令行使用easy_install安裝: easy_install Pillow
安裝完成后,使用from PIL import Image就引用使用庫了。

比如:

from PIL import Image
im = Image.open("bride.jpg")
im.rotate(45).show()


免責聲明!

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



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