python包:PIL


1)簡單介紹:

PIL(Python Imaging Library)是Python一個強大方便的圖像處理庫,名氣也比較大。不過只支持到Python 2.7。

PIL僅支持到Python2.7,並且Python3.x的兼容版本名爲Pillow,因此我們需要通過pip手動安裝:

pip install Pillow

 

2)如何使用:

https://blog.csdn.net/zhu_rui/article/details/105728916

 

3)安裝的時候報錯

******************

ERROR: Could not find a version that satisfies the requirement Pillow (from versions: none)

錯誤:找不到滿足 Pillow 要求的版本(來自版本:無)

******************

ERROR: No matching distribution found for Pillow

錯誤:找不到 Pillow 的匹配分佈

******************

 

安裝PIL

1.確認你的版本

2.如果是Python 2.7 直接 pip install PIL

3. 如果是Python 3.7 用 pip install pillow

 

 pip install pillow==8.0 -i https://pypi.tuna.tsinghua.edu.cn/simple

 pip install pillow==7.0 -i https://pypi.tuna.tsinghua.edu.cn/simple

 

 

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章