python -m pip install PIL
报错
python -m pip install Pillow
解决
原因:PIL多用于Python中2.7版本,在python3版本中用Pillow代替PIL了。因此安装Pillow库可解决 from PIL import Image报错问题。
python -m pip install PIL
报错
python -m pip install Pillow
解决
原因:PIL多用于Python中2.7版本,在python3版本中用Pillow代替PIL了。因此安装Pillow库可解决 from PIL import Image报错问题。