How to install lru module?

python -m pip install lru

So many error lines:

Collecting lru
  Using cached lru-0.1.tar.gz (1.1 kB)
  Preparing metadata ( ... error
  error: subprocess-exited-with-error
  × python egg_info did not run successfully.
  │ exit code: 1
  ╰─> [9 lines of output]
      Traceback (most recent call last):
        File "<string>", line 2, in <module>
        File "<pip-setuptools-caller>", line 34, in <module>
        File "/tmp/pip-install-f5gq_tjn/lru_973c5dfc37404bb7afdebab03a1b942d/", line 2, in <module>
          from lru import __version__ as version
        File "/tmp/pip-install-f5gq_tjn/lru_973c5dfc37404bb7afdebab03a1b942d/", line 18
          raise KeyError, key
      SyntaxError: invalid syntax
      [end of output]
  note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

How to install lru module?

That module is so old, it won’t work with current Python. Additionally, if you are doing this in HAOS, this module will vanish upon reboot.

Why don’t you tell us what your goal is? :blush: