图像处理_Image
1. 安装 输入 pip install PIL报错: ERROR: Could not find a version that satisfies the requirement PIL (from versions: none) ERROR: No matching distribution found for PIL 解决方案: Python3中Pillow源自PIL(在2中使用) (1) python -m pip install Pillow (2) pip install path\文件名 文件名为在网址: https://www.lfd.uci.edu/~gohlke/pythonlibs/ 中下载对应的模块。 使用(1)时报错: ReadTimeoutError: HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Read timed out. 超时问题,延长时间: python -m pip --default-timeout=100 install -U Pillow 注:pillow是PIL(Python成像库)的一个分支,不再被维护。所以,为了保持向后兼容性,往往使用旧的模块名称——PIL,即引用模块,直接使用import PIL 2. 功能