Skip to content

pip install results in an error running on Fedora 42 #95

@nidorhuang

Description

@nidorhuang

Hi,

I tried to install python-lzo with the sudo yum install liblzo2-devel command on a Fedora 42 system in WSL environment. the command returns "no match for argument". I installed 'lzo-devel' thinking it might be just naming change, but the pip install python-lzo still failed. I would like to ask for some help on the correct installation steps of liblzo2-devel on Fedora. Thank you.

System information:

$ uname -a
Linux LAPTOP-AKB9UNB4 6.6.87.2-microsoft-standard-WSL2 #1 SMP PREEMPT_DYNAMIC Thu Jun  5 18:30:46 UTC 2025 x86_64 GNU/Linux
$ cat /etc/os-release
NAME="Fedora Linux"
VERSION="42 (WSL)"
RELEASE_TYPE=stable
ID=fedora
VERSION_ID=42
VERSION_CODENAME=""
PLATFORM_ID="platform:f42"
PRETTY_NAME="Fedora Linux 42 (WSL)"
ANSI_COLOR="0;38;2;60;110;180"
LOGO=fedora-logo-icon
CPE_NAME="cpe:/o:fedoraproject:fedora:42"
DEFAULT_HOSTNAME="fedora"
HOME_URL="https://fedoraproject.org/"
DOCUMENTATION_URL="https://docs.fedoraproject.org/en-US/fedora/f42/system-administrators-guide/"
SUPPORT_URL="https://ask.fedoraproject.org/"
BUG_REPORT_URL="https://bugzilla.redhat.com/"
REDHAT_BUGZILLA_PRODUCT="Fedora"
REDHAT_BUGZILLA_PRODUCT_VERSION=42
REDHAT_SUPPORT_PRODUCT="Fedora"
REDHAT_SUPPORT_PRODUCT_VERSION=42
SUPPORT_END=2026-05-13
VARIANT="WSL"
VARIANT_ID=wsl
$ python -V
Python 3.13.2
$ pip -V
pip 24.3.1 from /usr/lib/python3.13/site-packages/pip (python 3.13)

Error messages:

$ sudo yum install liblzo2-devel
Updating and loading repositories:
Repositories loaded.
Failed to resolve the transaction:
No match for argument: liblzo2-devel
You can try to add to command line:
  --skip-unavailable to skip unavailable packages
$ yum search lzo
Updating and loading repositories:
 Fedora 42 - x86_64 - Updates                                                                                       100% |   8.7 KiB/s |   7.8 KiB |  00m01s
Repositories loaded.
Matched fields: name (exact)
 lzo.i686: Data compression library with very fast (de)compression
 lzo.x86_64: Data compression library with very fast (de)compression
Matched fields: name, summary
 libknet1-compress-lzo2-plugin.x86_64: Provides libknet1 lzo2 support
 lzo-devel.i686: Development files for the lzo library
 lzo-devel.x86_64: Development files for the lzo library
 lzo-minilzo.i686: Mini version of lzo for apps which don't need the full version
 lzo-minilzo.x86_64: Mini version of lzo for apps which don't need the full version
 python3-dns-lexicon+localzone.noarch: Meta-package for python3-dns-lexicon and localzone provider
Matched fields: name
 lzop.x86_64: Real-time file compressor
 python3-localzone.noarch: A simple library for managing DNS zones
$ yum search lzo-devel
Updating and loading repositories:
Repositories loaded.
Matched fields: name (exact)
 lzo-devel.i686: Development files for the lzo library
 lzo-devel.x86_64: Development files for the lzo library
$ sudo yum install lzo-devel
Updating and loading repositories:
Repositories loaded.
Package "lzo-devel-2.10-14.fc42.x86_64" is already installed.

Nothing to do.
$ pip install python-lzo
Defaulting to user installation because normal site-packages is not writeable
Collecting python-lzo
  Using cached 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
  ╰─> [3 lines of output]
      /tmp/pip-build-env-vew91_ek/overlay/lib/python3.13/site-packages/setuptools/_distutils/dist.py:289: UserWarning: Unknown distribution option: 'tests_require'
        warnings.warn(msg)
      error: command 'gcc' failed: No such file or directory
      [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: ERROR: Failed to build installable wheels for some pyproject.toml based projects (python-lzo)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions