枕头安装错误的建筑车轮

2024-04-27 16:23:30 发布

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

我正在尝试安装Google-Images-SearchAPI,所以我按照说明操作,当从窗口的命令提示符运行pip install Google-Images-Search时,一堆文件会像往常一样开始安装。然后到达这条线

Building wheels for collected packages: Pillow
  Building wheel for Pillow (setup.py) ... error
ERROR: Command errored out with exit status 1:
  (A few dozen lines of errors)

The headers or library files could not be found for zlib,
  a required dependency when compiling Pillow from source.

  Please see the install instructions at:
     https://pillow.readthedocs.io/en/latest/installation.html
  ----------------------------------------
  ERROR: Failed building wheel for Pillow

我不明白为什么会发生这种错误。起初,我认为这可能是另一个软件包的问题,所以我尝试在一个全新的虚拟环境中安装它,但运气不好。这也很奇怪,因为我已经在我的电脑上安装了枕头(是的,我试过卸载枕头)。为什么会这样


Tags: installpip文件forsearchgoogleerrorwheels