-
Notifications
You must be signed in to change notification settings - Fork 45
Open
Description
It seems that only wheels for MacOS and Windows are available on PyPI. This results in the following error on pip install python-lzo:
Defaulting to user installation because normal site-packages is not writeable
Collecting python-lzo
Downloading python-lzo-1.15.tar.gz (17 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Building wheels for collected packages: python-lzo
Building wheel for python-lzo (pyproject.toml) ... error
error: subprocess-exited-with-error
× Building wheel for python-lzo (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [5 lines of output]
lzomodule.c:38:10: fatal error: lzo/lzo1.h: No such file or directory
38 | #include <lzo/lzo1.h>
| ^~~~~~~~~~~~
compilation terminated.
error: command '/usr/bin/x86_64-linux-gnu-gcc' failed with exit code 1
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for python-lzo
Failed to build python-lzo
ERROR: Could not build wheels for python-lzo, which is required to install pyproject.toml-based projects
After installing the missing dependencies with sudo apt install liblzo2-dev, it builds fine.
Metadata
Metadata
Assignees
Labels
No labels