Skip to content

Instantly share code, notes, and snippets.

@Ozahata
Last active April 23, 2020 14:24
Show Gist options
  • Save Ozahata/795e25369fd311f1ad3de2a931178bfb to your computer and use it in GitHub Desktop.
Save Ozahata/795e25369fd311f1ad3de2a931178bfb to your computer and use it in GitHub Desktop.
(Mac) ImportError: pycurl: libcurl link-time ssl backend (none/other) is different from compile-time ssl backend (openssl)
brew install curl --with-openssl
echo 'export PATH="/usr/local/opt/curl/bin:$PATH"' >> ~/.bash_profile
# To not close the bash and open again
export PATH="/usr/local/opt/curl/bin:$PATH"
@yacitus
Copy link

yacitus commented Jan 18, 2019

This didn't solve the problem for me.

I noted:

$ brew install curl --with-openssl
Warning: curl 7.63.0 is already installed and up-to-date
To reinstall 7.63.0, run `brew reinstall curl`

So I tried:

$ brew reinstall curl --with-openssl
Usage: brew reinstall [option(s)] formula:

Uninstall and then install formula (with existing install options).

If HOMEBREW_INSTALL_CLEANUP is set then remove previously installed versions
of upgraded formulae as well as the HOMEBREW_CACHE for that formula.

    -s, --build-from-source          Compile the formula> from source even if a
                                     bottle is available.
        --display-times              Print install times for each formula at the
                                     end of the run.
    -v, --verbose                    Make some output more verbose.
    -d, --debug                      Display any debugging information.
    -h, --help                       Show this message.
Error: invalid option: --with-openssl

@yacitus
Copy link

yacitus commented Jan 18, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment