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
For Mac:
You need to install xz so that it finds the lzma module from the OS.
brew install readline xz
For Debian/Ubuntu:
sudo apt-get install liblzma-dev
For centos/redhat-based:
yum install -y xz-devel
Per Chris' comment, the solution is to install OS-specific dependencies then use pyenv
to install a python version.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With