× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [12 lines of output]
/home/***/.cache/pypoetry/virtualenvs/tree-labeller-YWWwrHrj-py3.8/lib/python3.8/site-packages/setuptools/dist.py:731: UserWarning: Usage of dash-separated 'description-file' will not be supported in future versions. Please use the underscore name 'description_file' instead
warnings.warn(
running bdist_wheel
running build
running build_py
running build_ext
building 'fastcache._lrucache' extension
src/_lrucache.c:1:10: fatal error: Python.h: No such file or directory
1 | #include <Python.h>
| ^~~~~~~~~~
compilation terminated.
error: command '/usr/lib/ccache/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 fastcache
Running setup.py clean for fastcache
It probably requires some development libraries that my system miss?
But I wonder if it makes sense to use this library?
As of Python 3.5, the CPython interpreter implements functools.lru_cache in C. It is generally faster than this library due to its use of a more performant internal API for dictionaries (and perhaps other reasons). Therefore this library is only recommended for Python 2.6-3.4
During the package installation, I get error:
It probably requires some development libraries that my system miss?
But I wonder if it makes sense to use this library?
fastcache
docs (https://github.com/pbrady/fastcache), there is probably no speed gain: