Skip to content

Instantly share code, notes, and snippets.

@anniethiessen
Last active June 11, 2021 20:27
Show Gist options
  • Select an option

  • Save anniethiessen/d904849c1e1b223452998389dc4eb140 to your computer and use it in GitHub Desktop.

Select an option

Save anniethiessen/d904849c1e1b223452998389dc4eb140 to your computer and use it in GitHub Desktop.
Resolve pycurl installation issues
# LINUX
brew install openssl
echo 'export PATH="/usr/local/opt/openssl/bin:$PATH"' >> ~/.bash_profile
export LDFLAGS="-L/usr/local/opt/openssl/lib"
export LDFLAGS="-L/home/linuxbrew/.linuxbrew/opt/[email protected]/lib"
export CPPFLAGS="-I/home/linuxbrew/.linuxbrew/opt/[email protected]/include"
export PKG_CONFIG_PATH="/home/linuxbrew/.linuxbrew/opt/[email protected]/lib/pkgconfig"
pip install --install-option="--with-openssl" --install-option="--openssl-dir=//home/linuxbrew/.linuxbrew/opt/[email protected]" pycurl
# Mac
brew install openssl
echo 'export PATH="/usr/local/opt/openssl/bin:$PATH"' >> ~/.bash_profile
export LDFLAGS="-L/usr/local/opt/openssl/lib"
export CPPFLAGS="-I/usr/local/opt/openssl/include"
export PKG_CONFIG_PATH="/usr/local/opt/openssl/lib/pkgconfig"
pip uninstall pycurl
pip install --install-option="--with-openssl" --install-option="--openssl-dir=/usr/local/opt/openssl" pycurl
# OR
PYCURL_SSL_LIBRARY=openssl LDFLAGS="-L/usr/local/opt/openssl/lib" CPPFLAGS="-I/usr/local/opt/openssl/include" pip install --no-cache-dir pycurl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment