Last active
June 11, 2021 20:27
-
-
Save anniethiessen/d904849c1e1b223452998389dc4eb140 to your computer and use it in GitHub Desktop.
Resolve pycurl installation issues
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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