Hi I've M1 chip Mac and when I tried to install pycares==4.0.0, I encountered errors with _ffi_prep_closure.
Error Message:
My environment: Python 3.8.10
>brew list | grep ffi
>libffi
I've tried to reinstall cffi in the following 2 methods, but does fix the issue.
Method1:
>pip uninstall cffi
>pip install --no-binary cffi==1.15.0
method2:
>pip uninstall cffi
>LDFLAGS=-L$(brew --prefix libffi)/lib CFLAGS=-I$(brew --prefix libffi)/include venv/bin/pip install cffi==1.15.0 --no-binary :all:
I've also tried to reinstall wheel/setuptools but does not work:
>pip install --upgrade pip==21.2.4
>pip install wheel==0.37.0 setuptools==57.4.0
I've also reinstall brew by the following, but does not work.
Can you help to identify my issue here?