ModuleNotFoundError: нет модуля с именем _util при попытке импортировать ImageCms из подушки - PullRequest
0 голосов
/ 19 марта 2020

У меня ошибка импорта при попытке импортировать ImageCms из подушки. Я подтверждаю, что PIL не установлен только подушка версии 6.0.0.

Python 3.6.8 | Anaconda, In c. |

In [1]: from PIL import ImageCms                                                
---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
~/anaconda3/lib/python3.6/site-packages/PIL/ImageCms.py in <module>
     22 try:
---> 23     from PIL import _imagingcms
     24 except ImportError as ex:

ImportError: cannot import name '_imagingcms'

During handling of the above exception, another exception occurred:

ModuleNotFoundError                       Traceback (most recent call last)
<ipython-input-1-5649c7a5961e> in <module>
----> 1 from PIL import ImageCms

~/anaconda3/lib/python3.6/site-packages/PIL/ImageCms.py in <module>
     25     # Allow error import for doc purposes, but error out when accessing
     26     # anything in core.
---> 27     from _util import deferred_error
     28     _imagingcms = deferred_error(ex)
     29 from PIL._util import isStringType

ModuleNotFoundError: No module named '_util'
...