Skip to Content
  • +31 653-919-302
Cafayate.Net
  • 0
  • 0
  • Sign in
  • Nederlands English (US) Español (AR)
  • Contact Us
  • Home
  • Blog
  • Jobs
  • Contact us
Cafayate.Net
  • 0
  • 0
    • Home
    • Blog
    • Jobs
    • Contact us
  • +31 653-919-302
  • Nederlands English (US) Español (AR)
  • Sign in
  • Contact Us

Odoo pip SSL InsecurePlatform error when using Requests package

  • All Blogs
  • Tech Blog
  • Odoo pip SSL InsecurePlatform error when using Requests package
  • March 5, 2021 by
    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

    Designed for companies

    We are a team of passionate people whose goal is to improve everyone's life through disruptive products. We build great products to solve your business problems. Our products are designed for small to medium size companies willing to optimize their performance.

    Get in touch

    Plantexel
    Pedernera
    Salta Capital 
    Argenina

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