Installing pycurl on computers with Apple M1 chips has always been a struggle. I have been using this command to install pycurl with OpenSSLv3 using pip:
brew update && brew install openssl
export LDFLAGS="-L/opt/homebrew/opt/openssl@3/lib"
export CPPFLAGS="-I/opt/homebrew/opt/openssl@3/include"
pip uninstall pycurl
pip install --compile --install-option="--with-openssl" pycurl
But in pip v23.1+ (see here), the --install-option has been removed and I can't figure out how to create an equivalent command.
The reason
--install-optionwas removed is that thesetup.py installmode of installing packages has been deprecated and subsequently removed. So there is no way to tell pip to pass something tosetup.py, as it is no longer being called, see also here.I suggest you download the pycurl sources and then manually call