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