3 Comments

Thank you Raphaël for time and attention, much appreciated.

Expand full comment

Hi Raphaël, I followed your very clear and well argued steps for "The right way to install Python on a Mac".

When I ran the install command in Terminal => (base) evenshoshantum@Michaels-MacBook-Air-M3-2024 ~ % pyenv install 3.12.4), towards the end of the process, I got the following message:

Installing Python-3.12.4...

python-build: use readline from homebrew

python-build: use zlib from xcode sdk

Traceback (most recent call last):

File "<string>", line 1, in <module>

File "/Users/evenshoshantum/.pyenv/versions/3.12.4/lib/python3.12/lzma.py", line 27, in <module>

from _lzma import *

ModuleNotFoundError: No module named '_lzma'

WARNING: The Python lzma extension was not compiled. Missing the lzma lib?

What must I do please ?

Many thanks for your kind attention and greetings from Paris France.

Expand full comment

Try installing the library that you are missing.

brew install xz

brew install readline

brew install zlib

Expand full comment