Skip to content

Instantly share code, notes, and snippets.

@webinista
Last active April 23, 2021 07:18
Show Gist options
  • Save webinista/b4b6a4cf8f158431b2c5134630c2cbfe to your computer and use it in GitHub Desktop.
Save webinista/b4b6a4cf8f158431b2c5134630c2cbfe to your computer and use it in GitHub Desktop.

Revisions

  1. webinista revised this gist Oct 7, 2018. 1 changed file with 3 additions and 2 deletions.
    5 changes: 3 additions & 2 deletions HowToFixPycURLErrorMacOS.md
    Original file line number Diff line number Diff line change
    @@ -23,6 +23,7 @@ Then do the following:
    2. Run `export PYCURL_SSL_LIBRARY=openssl` to set the library for PycURL
    3. Run the following commmand (really 3 commands in 1) to tell the compiler where to find openssl, then download and compile pycurl with pip.

    export LDFLAGS=-L/usr/local/opt/openssl/lib;export CPPFLAGS=-I/usr/local/opt/openssl/include; pip install pycurl --compile --no-cache-dir

    ```
    export LDFLAGS=-L/usr/local/opt/openssl/lib;export CPPFLAGS=-I/usr/local/opt/openssl/include; pip install pycurl --compile --no-cache-dir
    ```

  2. webinista revised this gist Oct 7, 2018. 1 changed file with 2 additions and 1 deletion.
    3 changes: 2 additions & 1 deletion HowToFixPycURLErrorMacOS.md
    Original file line number Diff line number Diff line change
    @@ -15,8 +15,9 @@ Here's one way to fix. First, the pre-requisites:
    - Install Xcode command line tools with `xcode-select --install` if they aren't already.
    - Install Homebrew if you don't have it already: https://brew.sh/
    - Uninstall your current version of cURL if you have one installed.
    - Uninstall your current version of PycURL.

    Do the following:
    Then do the following:

    1. Use `brew install curl --with-openssl` to install cURL
    2. Run `export PYCURL_SSL_LIBRARY=openssl` to set the library for PycURL
  3. webinista revised this gist Oct 7, 2018. 1 changed file with 5 additions and 3 deletions.
    8 changes: 5 additions & 3 deletions HowToFixPycURLErrorMacOS.md
    Original file line number Diff line number Diff line change
    @@ -10,12 +10,14 @@ If you try to install PycURL and receive this error:

    Curl is configured to use SSL, but we have not been able to determine which SSL backend it is using
    Do the following:
    Here's one way to fix. First, the pre-requisites:

    - Install Xcode command line tools with `xcode-select --install`
    - Install homebrew if you don't have it already: https://brew.sh/
    - Install Xcode command line tools with `xcode-select --install` if they aren't already.
    - Install Homebrew if you don't have it already: https://brew.sh/
    - Uninstall your current version of cURL if you have one installed.

    Do the following:

    1. Use `brew install curl --with-openssl` to install cURL
    2. Run `export PYCURL_SSL_LIBRARY=openssl` to set the library for PycURL
    3. Run the following commmand (really 3 commands in 1) to tell the compiler where to find openssl, then download and compile pycurl with pip.
  4. webinista revised this gist Oct 6, 2018. 1 changed file with 3 additions and 0 deletions.
    3 changes: 3 additions & 0 deletions HowToFixPycURLErrorMacOS.md
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,6 @@
    Partly pulled from the comments here:
    https://github.com/pycurl/pycurl/issues/526

    May also be a fix for this error:

    ImportError: pycurl: libcurl link-time ssl backend (none/other) is different from compile-time ssl backend (openssl)
  5. webinista revised this gist Oct 6, 2018. 1 changed file with 4 additions and 3 deletions.
    7 changes: 4 additions & 3 deletions HowToFixPycURLErrorMacOS.md
    Original file line number Diff line number Diff line change
    @@ -9,9 +9,10 @@ If you try to install PycURL and receive this error:
    Do the following:

    -2. Install Xcode command line tools with `xcode-select --install`
    -1. Install homebrew if you don't have it already: https://brew.sh/
    0. Uninstall your current version of cURL if you have one installed.
    - Install Xcode command line tools with `xcode-select --install`
    - Install homebrew if you don't have it already: https://brew.sh/
    - Uninstall your current version of cURL if you have one installed.

    1. Use `brew install curl --with-openssl` to install cURL
    2. Run `export PYCURL_SSL_LIBRARY=openssl` to set the library for PycURL
    3. Run the following commmand (really 3 commands in 1) to tell the compiler where to find openssl, then download and compile pycurl with pip.
  6. webinista revised this gist Oct 6, 2018. 1 changed file with 3 additions and 4 deletions.
    7 changes: 3 additions & 4 deletions HowToFixPycURLErrorMacOS.md
    Original file line number Diff line number Diff line change
    @@ -9,10 +9,9 @@ If you try to install PycURL and receive this error:
    Do the following:

    0 Install Xcode command line tools with `xcode-select --install`
    0.5. Install homebrew if you don't have it already: https://brew.sh/
    0.75. Uninstall your current version of cURL if you have one installed.

    -2. Install Xcode command line tools with `xcode-select --install`
    -1. Install homebrew if you don't have it already: https://brew.sh/
    0. Uninstall your current version of cURL if you have one installed.
    1. Use `brew install curl --with-openssl` to install cURL
    2. Run `export PYCURL_SSL_LIBRARY=openssl` to set the library for PycURL
    3. Run the following commmand (really 3 commands in 1) to tell the compiler where to find openssl, then download and compile pycurl with pip.
  7. webinista revised this gist Oct 6, 2018. 1 changed file with 4 additions and 3 deletions.
    7 changes: 4 additions & 3 deletions HowToFixPycURLErrorMacOS.md
    Original file line number Diff line number Diff line change
    @@ -9,9 +9,10 @@ If you try to install PycURL and receive this error:
    Do the following:

    -2. Install Xcode command line tools with `xcode-select --install`
    -1. Install homebrew if you don't have it already: https://brew.sh/
    0. Uninstall your current version of cURL if you have one installed.
    0 Install Xcode command line tools with `xcode-select --install`
    0.5. Install homebrew if you don't have it already: https://brew.sh/
    0.75. Uninstall your current version of cURL if you have one installed.

    1. Use `brew install curl --with-openssl` to install cURL
    2. Run `export PYCURL_SSL_LIBRARY=openssl` to set the library for PycURL
    3. Run the following commmand (really 3 commands in 1) to tell the compiler where to find openssl, then download and compile pycurl with pip.
  8. webinista created this gist Oct 6, 2018.
    21 changes: 21 additions & 0 deletions HowToFixPycURLErrorMacOS.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,21 @@
    May also be a fix for this error:

    ImportError: pycurl: libcurl link-time ssl backend (none/other) is different from compile-time ssl backend (openssl)


    If you try to install PycURL and receive this error:

    Curl is configured to use SSL, but we have not been able to determine which SSL backend it is using
    Do the following:

    -2. Install Xcode command line tools with `xcode-select --install`
    -1. Install homebrew if you don't have it already: https://brew.sh/
    0. Uninstall your current version of cURL if you have one installed.
    1. Use `brew install curl --with-openssl` to install cURL
    2. Run `export PYCURL_SSL_LIBRARY=openssl` to set the library for PycURL
    3. Run the following commmand (really 3 commands in 1) to tell the compiler where to find openssl, then download and compile pycurl with pip.

    export LDFLAGS=-L/usr/local/opt/openssl/lib;export CPPFLAGS=-I/usr/local/opt/openssl/include; pip install pycurl --compile --no-cache-dir