samsudinr / data_engineer

0 stars 0 forks source link

error when I try to test cohere API. #1

Open samsudinr opened 10 months ago

samsudinr commented 10 months ago

the error : import lzma File "/Users/UD7879/.pyenv/versions/3.10.4/lib/python3.10/lzma.py", line 27, in from _lzma import * ModuleNotFoundError: No module named '_lzma'

the solution : CFLAGS="-I$(brew --prefix xz)/include" LDFLAGS="-L$(brew --prefix xz)/lib" pyenv install 3.10.4

samsudinr commented 10 months ago

source the solving problem : https://github.com/pyenv/pyenv/issues/1800