我无法安装PIL。当我运行pip install PIL时,我得到: Could not find any downloads that satisfy the requirementPILStoring debug log for failure in /tmp/tmpWJojCu
我试着遵循问题的答案,但我得到了
Please view the SDK documentation for details about installing PIL on your system.',).我已经安装了PIL,但仍然找不到它的显示。我已经把它安装在 script: main.app
- name: jinja2- name: PIL
version: 1.1.7
我正在使用PIL使图像的颜色四舍五入为最接近的颜色。但是,在执行此操作时,我使用函数putpixel遇到了许多错误。我已经尝试将RGB值转换为int,以防它们是float。下面是我的尝试: import numpy as np
im = Image.open("milford_sound_new_zealand_bay_reflection_mountains