Overslaan naar inhoud
  • +31 653-919-302
Cafayate.Net
  • 0
  • 0
  • Aanmelden
  • Nederlands English (US) Español (AR)
  • Contact
  • Startpagina
  • Blog
  • Vacatures
  • Contact
Cafayate.Net
  • 0
  • 0
    • Startpagina
    • Blog
    • Vacatures
    • Contact
  • +31 653-919-302
  • Nederlands English (US) Español (AR)
  • Aanmelden
  • Contact

Odoo pip SSL InsecurePlatform error when using Requests package

  • Alle blogs
  • Tech Blog
  • Odoo pip SSL InsecurePlatform error when using Requests package
  • 5 maart 2021 in
    Administrator
    sudo pip install -r requirements.txt
    
    good option to fulfill requirement all in one

    sudo apt-get install python-pip python-dev python3-dev libxml2-dev libxslt1-dev libsasl2-dev libsqlite3-dev libssl-dev libldap2-dev libffi-dev

     

    Use the somewhat hidden security feature:

    pip install 'requests[security]' or pip install pyOpenSSL ndg-httpsclient pyasn1

    Both commands install following extra packages:

    • pyOpenSSL
    • ndg-httpsclient
    • pyasn1

    Please note that this is not required for python-2.7.9+.

    If pip install fails with errors, check whether you have required development packages for libffi, libssl and python installed in your system using distribution’s package manager:

    • Debian/Ubuntu – python-dev libffi-dev libssl-dev packages.
    • Fedora – openssl-devel python-devel libffi-devel packages.

    Distro list above is incomplete.

    Workaround (see the original answer by @TomDotTom):

    In case you cannot install some of the required development packages, there’s also an option to disable that warning:

    import requests.packages.urllib3
    requests.packages.urllib3.disable_warnings()
    
    
    pip install --upgrade ndg-httpsclient
    
    
    
    other option :
    
    

    For me no work i need upgrade pip….

    Debian/Ubuntu

    install dependencies

    sudo apt-get install libpython-dev libssl-dev libffi-dev

    upgrade pip and install packages

    sudo pip install -U pip
    sudo pip install -U pyopenssl ndg-httpsclient pyasn1

    If you want remove dependencies

    sudo apt-get remove --purge libpython-dev libssl-dev libffi-dev
    sudo apt-get autoremove
     
     
    in Tech Blog
    Woocommerce Page Default Sorting Drop-Down

    Ontworpen voor bedrijven

    We zijn een team van gepassioneerde mensen met als doel levens te verbeteren met vernieuwende producten. We ontwikkelen geweldige oplossingen voor al je zakelijke uitdagingen. Onze producten zijn ontworpen voor kleine tot middelgrote bedrijven die hun prestaties willen optimaliseren.

    Neem contact op

    Plantexel
    Pedernera
    Salta Capital 
    Argentina

    • +31 653-919-302
    • [email protected]
    Volg ons
    Copyright © Plantexel
    Nederlands | English (US) | Español (AR)