Search code examples
pythonpiplzma

Missing the lzma lib?


The following message means that Python has not been installed completely. If Yes! Do I have to install the 'lzma' extension?

ModuleNotFoundError: No module name '_lzma'
Warning: The Python lzma extension was not compiled. Missing the lzma lib?
Installed Python-3.11.3 to /Users/admin/.pyenv/versions/3.11.3

Thank you!


Solution

  • Per Chris' comment, the solution is to install OS-specific dependencies then use pyenv to install a python version.