I'm trying to install PIL
using anaconda, while I'm inside my conda environment.
Inside the conda environment:
conda install pil
but I get the following error
UnsatisfiableError: The following specifications were found to be in
conflict:
- pil -> python 2.6*
- python 3.6*
I have python 2.7 and 3.6 both installed inside my conda environment. PIL
is not currently installed as I get an importError
when I try to import it in python.
I have tried the following:
conda uninstall pil
and
conda remove pil
For both I get
PackageNotFoundError: Package(s) is missing from the environment:
pil
What do I do?
You can install pillow
instead, which supports both Python 2 and 3 (check out the supported versions here
conda install pillow
pil
is deprecated since 2009 and pillow
is an actively developed fork of pil
.
So I'd suggest creating a new environment with pillow
installed instead of pil
to test.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.