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

后端 未结 3 1108
攒了一身酷
攒了一身酷 2020-12-29 06:48

When I perform pip install thumbor I get the following error:

Traceback (most recent call last):
  File \"\", line 1, in 

        
3条回答
  •  既然无缘
    2020-12-29 07:24

    I was receiving this error when deploying to Beanstalk since I need pycurl for Celery. While in many discussions people recommend different ssl options, my solution was not to use any of these options. Python config file for deploying looks as follows:

    packages:
      yum:
        git: []
        postgresql93-devel: []
        libcurl-devel: []
        libjpeg-turbo-devel: []
    
    commands:
      01_download_pip3:
          command: 'curl -O https://bootstrap.pypa.io/get-pip.py'
      02_install_pip3:
          command: 'python3 get-pip.py'
      03_pycurl_uninstall:
          command: '/usr/bin/yes | sudo /opt/python/run/venv/bin/pip3 uninstall pycurl'
      04_pycurl_reinstall:
          command: 'sudo /opt/python/run/venv/bin/pip3 install pycurl'
    

    I did not set any environment variables within the software configuration of Beanstalk.

    On MacOS Mojave this worked for me:

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

提交回复
热议问题