无法安装 mmaction:错误:枕头构建轮失败

问题描述 投票:0回答:1

我正在尝试在Windows上安装python3.12.4版本的mmaction模块(解释器是venv),但无论我尝试什么命令,最后我总是得到:

RequiredDependencyException: zlib
     
      During handling of the above exception, another exception occurred:
     
      Traceback (most recent call last):
        File "<string>", line 2, in <module>
        File "<pip-setuptools-caller>", line 34, in <module>
        File "C:\Users\babic\AppData\Local\Temp\pip-install-w9fq41js\pillow_fa46dd3e9ace49e494ddbe12da2bf332\setup.py", line 903, in <module>
          raise RequiredDependencyException(msg)
      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
     
     
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for Pillow
  Running setup.py clean for Pillow
Failed to build Pillow
ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (Pillow)

我已经尝试过:

pip install mmaction
pip install --upgrade pip
pip install --upgrade Pillow
python -m pip install --upgrade pip
python -m pip install --upgrade pillow
python -m pip install --upgrade pip setuptools wheel
pip install Pillow  # was installed successfully

我还能做什么来安装这个模块?

谢谢你。

installation pip module python-imaging-library
1个回答
0
投票

mmaction:2020 年最后一次发布;使用 Python 3.5、3.6、3.7(请参见左栏底部)。看起来很旧而且被遗弃了。

尝试mmaction2

pip install mmaction2

请参阅迁移指南文档

© www.soinside.com 2019 - 2024. All rights reserved.