这个错误通常是由于缺少一些依赖库导致的。你可以尝试以下方法解决问题:

  1. 确保你的操作系统已经安装了Pillow的依赖库。对于Debian/Ubuntu系统,可以使用以下命令安装:

    sudo apt-get install libjpeg-dev zlib1g-dev libtiff-dev libfreetype6-dev liblcms2-dev libwebp-dev tcl8.6-dev tk8.6-dev python-tk
    

    对于CentOS/RHEL系统,可以使用以下命令安装:

    sudo yum install libjpeg-devel zlib-devel libtiff-devel freetype-devel lcms2-devel libwebp-devel tcl-devel tk-devel
    
  2. 如果你使用的是虚拟环境,请确保你已经激活了该环境。

  3. 尝试使用以下命令安装wxPython和Pillow:

    pip3.8 install -U -f https://extras.wxpython.org/wxPython4/extras/linux/gtk3/ubuntu-18.04 wxPython
    pip3.8 install -U pillow
    

    如果你使用的是其他操作系统,请根据实际情况修改链接。

希望以上方法可以帮助你解决问题。如果问题仍然存在,请提供更多详细的错误信息,以便我们提供更准确的解决方案

中文回答 pip38 install wxpython 出现note This error originates from a subprocess and is likely not a problem with pip ERROR Failed building wheel for pillowFailed to build pillowERROR Could not build whe

原文地址: http://www.cveoy.top/t/topic/ilge 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录