我正在尝试在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
我还能做什么来安装这个模块?
谢谢你。