ModuleNotFoundError: No module named ‘_lzma’ when building python using pyenv on macos

None of the prior answers worked for me. The instructions in this gist worked for me. In short: You may be missing the xz libraries, in which case you can install them with Homebrew and then reinstall/rebuild the Python version from pyenv: $ brew install xz $ pyenv uninstall <desired-python-version> $ pyenv install <desired-python-version> Note: … Read more

Why is *.tar.gz still much more common than *.tar.xz? [closed]

“Lowest Common Denominator”. The extra space saved is rarely worth the loss of interoperability. Most embedded Linux systems have gzip, but not xz. Many old system as well. Gnu Tar which is the industry standard supports flags -z to process through gzip, and -j to process through bzip2, but some old systems don’t support the … Read more