当前位置: 首页 > 知识库问答 >
问题:

有没有办法我可以在我的窗户机器上安装枕头?

胡越泽
2023-03-14

我试着安装枕头库,但我收到了这样的信息

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

Traceback (most recent call last):
  File "C:\Users\Timo\AppData\Local\Temp\pip-install-gr4big0c\pillow\setup.py", line 864, in <module>
    setup(
  File "C:\Users\Timo\PycharmProjects\jumia\venv\lib\site-packages\setuptools-40.8.0-py3.8.egg\setuptools\__init__.py", line 145, in setup
  File "C:\Program Files\Python38\lib\distutils\core.py", line 148, in setup
    dist.run_commands()
  File "C:\Program Files\Python38\lib\distutils\dist.py", line 966, in run_commands
    self.run_command(cmd)
  File "C:\Program Files\Python38\lib\distutils\dist.py", line 985, in run_command
    cmd_obj.run()
  File "C:\Users\Timo\PycharmProjects\jumia\venv\lib\site-packages\setuptools-40.8.0-py3.8.egg\setuptools\command\install.py", line 61, in run
  File "C:\Program Files\Python38\lib\distutils\command\install.py", line 545, in run
    self.run_command('build')
  File "C:\Program Files\Python38\lib\distutils\cmd.py", line 313, in run_command
    self.distribution.run_command(command)
  File "C:\Program Files\Python38\lib\distutils\dist.py", line 985, in run_command
    cmd_obj.run()
  File "C:\Program Files\Python38\lib\distutils\command\build.py", line 135, in run
    self.run_command(cmd_name)
  File "C:\Program Files\Python38\lib\distutils\cmd.py", line 313, in run_command
    self.distribution.run_command(command)
  File "C:\Program Files\Python38\lib\distutils\dist.py", line 985, in run_command
    cmd_obj.run()
  File "C:\Program Files\Python38\lib\distutils\command\build_ext.py", line 340, in run
    self.build_extensions()
  File "C:\Users\Timo\AppData\Local\Temp\pip-install-gr4big0c\pillow\setup.py", line 694, in build_extensions
    raise RequiredDependencyException(f)
__main__.RequiredDependencyException: zlib

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "C:\Users\Timo\AppData\Local\Temp\pip-install-gr4big0c\pillow\setup.py", line 918, in <module>
    raise RequiredDependencyException(msg)
__main__.RequiredDependencyException:

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



----------------------------------------

命令“c:\users\timo\pycharmprojects\jumia\venv\scripts\python.exe-u-c”导入setuptools,tokenize;file='c:\users\timo\appdata\local\temp\pip-install-gr4big0c\pillow\setup.py';f=getattr(tokenize,'open',open)(file);code=f.read().replace('\r\n','\n');f.close();exec(compile(code,file,'exec'))“install--record version-externally-managed--compile-install-headers C:\users\timo\pycharmprojects\jumia\venv\include\site\python3.8\pillow”失败,错误代码为1(在C:\users\timo\appdata\local\temp\pip-install-gr4big0C\pillow中)

共有1个答案

戚逸清
2023-03-14

尝试按以下方式安装:

python3 -m pip install --upgrade pip
python3 -m pip install --upgrade Pillow
 类似资料:
  • 问题内容: 我正在使用数据库Oracle 11g Express Edition(XE),当我尝试创建Java源对象时,它返回一个错误: ORA-29538:未安装Java 源代码很简单: 我在Oracle文档中发现Oracle XE不包含Java。 有人知道是否可以在其上“安装” Java吗? 问题答案: 不可以,Oracle数据库11g Express Edition 中不提供Java支持,并

  • 我没有设法在乌班图上完全安装mysql... 我在安装mysql时遇到了一个奇怪的问题! 当我在Ubuntu终端中输入这个命令时,我在安装mysql时遇到了以下错误: 当然,在此之前,我用下面的命令彻底删除了一次mysql: 和 和 导入这些命令后,我决定从第一个开始再次安装mysql,因此我输入了以下命令: 然后,我在终端内看到以下错误消息: 此MySQL安装已升级到5.7.27,如果您仍需要运

  • 我又来咨询大佬问题了 小内存机器1G,是否有办法安装上mysql 5.7 (非mysql-generic-5.7版本?) 常规linux机器可以想办法安装后再进行参数优化 但是机器实测时会在中间卡退安装失败 请教下大佬解决办法

  • 配置文件在这里输入图像描述@my appService提供商 在此处输入图像描述 在我安装input composer后,有人能告诉我这个问题吗?问题是,现在我无法迁移 当我运行php artisan迁移时,这个问题会显示出来 未知数据库配置/database.php(SQL:选择*从information_schema.tables其中table_schema=配置/database.php和t

  • 升级的Android Studio和APK不工作,它说“应用程序没有安装”我通过谷歌驱动器发送APK。 null