python -m pip install lru
So many error lines:
Collecting lru
Using cached lru-0.1.tar.gz (1.1 kB)
Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py 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/setup.py", line 2, in <module>
from lru import __version__ as version
File "/tmp/pip-install-f5gq_tjn/lru_973c5dfc37404bb7afdebab03a1b942d/lru.py", 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?