Не может импортировать данные в python из-за PIL/Pillow

При импорте даташадера в 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

Затем я попытался исправить PIL путем установки pip PIL --allow-external PIL --allow-unverified 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

Какие-либо предложения? Я использую Python 2 на Mac с установленным conda/pip. Спасибо большое.

0 ответов

Другие вопросы по тегам