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' <br/>
Warning: The Python lzma extension was not compiled. Missing the lzma lib? <br/>
Installed Python-3.11.3 to /Users/admin/.pyenv/versions/3.11.3

Solution

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