🍿 Missing _lzma when trying to run Python code
Snacks (🍿) are my collection of recipes for solving problems. Often recorded (and cleaned up) from actual discussions where I'm involved in helping others with technical problems. Not all solutions are mine but I started collecting them in one place because you never know when you need one.
If you run into an error message with Python, saying the _lzma
is missing, you need to install it separately.
On Mac, you can install it with
brew install xz
you then need to install/build Python again. Using pyenv, it's
pyenv uninstall [your version]
pyenv install [your version]