Skip to content

Instantly share code, notes, and snippets.

@jdesilvio
Last active April 16, 2024 18:13
Show Gist options
  • Save jdesilvio/5b4fc264fff1d6ad9905003c1bcc80e8 to your computer and use it in GitHub Desktop.
Save jdesilvio/5b4fc264fff1d6ad9905003c1bcc80e8 to your computer and use it in GitHub Desktop.
pycurl openssl conflict
# Intel
export CFLAGS="-I$(brew --prefix openssl)/include"
export LDFLAGS="-L$(brew --prefix openssl)/lib"
export PYCURL_SSL_LIBRARY=openssl
pip uninstall pycurl
pip install pycurl==7.43.0.2 --global-option="--with-openssl"
# M1
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 --upgrade pip==22. # Must downgrade pip in order to use --install-option
pip install --compile --install-option="--with-openssl" pycurl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment