将数据着色器导入 python 2 时,出现错误
from . import _imaging as core
57 if PILLOW_VERSION != getattr(core, 'PILLOW_VERSION', None):
---> 58 raise ImportError("The _imaging extension was built for another "
59 "version of Pillow or PIL")
60
ImportError:_imaging 扩展是为另一个版本的 Pillow 或 PIL 构建的
然后我尝试通过 pip install PIL --allow-external PIL --allow-unverified PIL 修复 PIL 并得到错误
DEPRECATION: --allow-external has been deprecated and will be removed in the future. Due to changes in the repository protocol, it no longer has any effect.
DEPRECATION: --allow-unverified has been deprecated and will be removed in the future. Due to changes in the repository protocol, it no longer has any effect.
Collecting PIL
Could not find a version that satisfies the requirement PIL (from versions: )
No matching distribution found for PIL
有什么建议么?我在安装了 conda/pip 的 mac 上运行 python 2。非常感谢。