如何获得 python 的 PIL
how to get PIL for python
我正在尝试 运行 使用 tensorflow 1.15
、keras 2.2.4
和 PIL 7.2.0
的 python 代码。我的 conda 虚拟环境 运行 Python 3.6 上没有 PIL。 None 以下对我有效-
conda install PIL
conda install PIL=7.2
pip install PIL
pip install PIL==7.2
我发现 conda install Pillow=7.2
或 pip install Pillow==7.2
可能会安装 PIL。这是正确的做法吗?
我只是想确定一下,我不想陷入版本冲突。
要安装 PIL 库,您必须 运行 命令 pip install Pillow
。参考 here
我正在尝试 运行 使用 tensorflow 1.15
、keras 2.2.4
和 PIL 7.2.0
的 python 代码。我的 conda 虚拟环境 运行 Python 3.6 上没有 PIL。 None 以下对我有效-
conda install PIL
conda install PIL=7.2
pip install PIL
pip install PIL==7.2
我发现 conda install Pillow=7.2
或 pip install Pillow==7.2
可能会安装 PIL。这是正确的做法吗?
我只是想确定一下,我不想陷入版本冲突。
要安装 PIL 库,您必须 运行 命令 pip install Pillow
。参考 here