Discussion about this post

User's avatar
Michael JAMESON's avatar

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

Expand full comment
Michael JAMESON's avatar

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
1 more comment...

No posts