重要提示:未安装图像处理C模块?皮Python3

2024-10-01 15:41:54 发布

您现在位置:Python中文网/ 问答频道 /正文

root@syscomp1:~# cd Pillow-master
root@syscomp1:~/Pillow-master# python3 selftest.py
Traceback (most recent call last):
  File "selftest.py", line 8, in <module>
    from PIL import Image
  File "./PIL/Image.py", line 155, in <module>
    if hasattr(core, 'DEFAULT_STRATEGY'):
  File "./PIL/Image.py", line 39, in __getattr__
    raise ImportError("The _imaging C module is not installed")
ImportError: The _imaging C module is not installed
root@syscomp1:~/Pillow-master#

这是安装PIL之前的步骤

^{pr2}$

但是The _imaging C module is not installed为什么出错?在


Tags: theinpyimagemasterpilisline
1条回答
网友
1楼 · 发布于 2024-10-01 15:41:54

看起来像中的Python 2 print语句设置.py公司名称:

  Downloading from URL http://effbot.org/media/downloads/PIL-1.1.7.tar.gz (from http://effbot.org/downloads/)
  Running setup.py egg_info for package pil

    Traceback (most recent call last):

      File "<string>", line 16, in <module>

      File "<pyenv>/build/pil/setup.py", line 182

        print " - using Tcl/Tk libraries at", TCL_ROOT

相关问题 更多 >

    热门问题