如何在 Windows 上安装 PIL?
原文:https://www . geesforgeks . org/how-install-pil-on-windows/
在本文中,我们将探讨在 Windows 机器上安装 PIL 软件包的各种方法。
先决条件:
对于画中画用户:
打开命令提示符,使用以下命令安装 PIL 软件包:
pip install Pillow
安装完成后,将显示以下消息:
要验证安装,请在您选择的 Python IDE 中运行以下代码:
Python 3
import PIL
IL.__version__
输出:
对于康达用户:
Conda 用户可以打开 Anaconda 电源外壳,并使用以下命令安装 PIL:
conda install -c anaconda Pillow
安装完成后,将显示以下消息:
要验证安装,请在您选择的 Python IDE 中运行以下代码:
Python 3
import PIL
IL.__version__
输出:
版权属于:月萌API www.moonapi.com,转载请注明出处