Odoo pip SSL InsecurePlatform error when using Requests package
5 March, 2021 by
Odoo pip  SSL InsecurePlatform error when using Requests package
| No comments yet

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/Ubuntupython-dev libffi-dev libssl-dev packages.
  • Fedoraopenssl-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

pip install --upgrade ndg-httpsclient

other option :

For me no work i need upgrade pip….


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
Sign in to leave a comment