PILKit无法导入Python Imaging Library。

6
我遇到了以下错误:
``` raise ImportError('PILKit无法导入Python Imaging Library,请确认其已安装并在当前Python路径中可用。') ImportError: PILKit无法导入Python Imaging Library,请确认其已安装并在当前Python路径中可用。 ```
该错误提示表明PILKit无法导入Python Imaging Library,需要确认其已安装并在当前Python路径中可用。

1
你确认在当前的Python路径下已经安装并可用PIL模块了吗? - Kevin
当我尝试使用'pip install pillow'安装'pillow'时,它会抛出以下错误:/ fproject / bin / python -u -c“import setuptools,tokenize; file =' / tmp / pip-build-s8dkkm / pillow / setup.py'; exec(compile(getattr(tokenize,'open',open)(__ file__).read()。replace('\ r \ n','\ n'),__ file__,'exec'))”install --record / tmp / pip-UTclPh-record / install-record.txt --single-version-externally-managed --compile --install-headers / home / manish / backup / mukul / fproject / include / site / python2.7 / pillow”在/ tmp / pip-build-s8dkkm / pillow中以错误代码1失败 - Manish Kumar
尝试从gohlke的网站下载并使用pip安装wheel文件。 - Kevin
我正在使用Ubuntu,这个链接似乎是针对Windows的。 - Manish Kumar
1个回答

9

你需要安装PIL或pillow,可以尝试以下命令:

pip install pillow

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接