I got InsecurePlatformWarning in python, so I installed requests [security]

The following warning is now available in python

/usr/local/lib/python2.7/dist-packages/requests/packages/urllib3/util/ssl_.py:90: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
  InsecurePlatformWarning

Here There is a story of a similar symptom, and I think that installing the package requests [security] as follows will cure it.

python


sudo apt-get install python-dev libffi-dev build-essential
sudo pip install requests[security]

After that, this warning disappeared. Was good.

Recommended Posts

I got InsecurePlatformWarning in python, so I installed requests [security]
I wrote python in Japanese
5 reasons I got into Python
I understand Python in Japanese!
What I learned in Python
What I got stuck around GUI in WSL python environment
I got an error in vim and zsh in Python 3.7 series
When I tried to scrape using requests in python, I was addicted to SSLError, so a workaround memo
I got lost in the maze
I got an SSL Error when I installed Anaconda in a new environment, so I solved it (Windows10, Anaconda3-2019.10)
I wrote Fizz Buzz in Python
I learned about processes in Python
I can't install scikit-learn in Python
I wrote the queue in Python
I tried Line notification in Python
I wrote the stack in Python
I put Python 2.7 in Sakura VPS 1GB.
I tried to implement PLSA in Python
I made a payroll program in Python!
I installed Python 3.5.1 to study machine learning
I tried to implement PLSA in Python 2
Log in to Slack using requests in Python
I implemented Cousera's logistic regression in Python
I tried to implement ADALINE in Python
What I got from Python Boot Camp
I installed and used Numba with Python3.5
I wanted to solve ABC159 in Python
I tried to implement PPO in Python
I searched for prime numbers in python
Call APIGateWay with APIKey in python requests
I created a password tool in Python.
Why can't I install matplotlib in python! !!
I installed Pygame with Python 3.5.1 in the environment of pyenv on OS X
I got an error when I put opencv in python3 with Raspberry Pi [Remedy]
What I did when I got stuck in the time limit with lambda python
I want to do Dunnett's test in Python
I implemented Robinson's Bayesian Spam Filter in python
3.14 π day, so try to output in Python
A memo that I wrote a quicksort in Python
I was able to recurse in Python: lambda
I want to create a window in Python
I tried playing a typing game in Python
I tried simulating the "birthday paradox" in Python
I tried the least squares method in Python
I investigated in detail about variable processing in python
I wrote a class in Python3 and Java
[Memo] I tried a pivot table in Python
How to specify TLS version in python requests
I want to merge nested dicts in Python
I tried to implement TOPIC MODEL in Python
I tried non-blocking I / O Eventlet behavior in Python
I got stuck installing Anaconda 4.3.0 which became Python 3.6
I implemented the inverse gamma function in python
I tried adding a Python3 module in C
[Question] What happens when I use% in python?
I tried to implement selection sort in python
I made a Caesar cryptographic program in Python.
I want to display the progress in Python!
I got Could not find function xmlCheckVersion in library libxml2. Is libxml2 installed? In easy_install lxml.
I got stuck when trying to specify a relative path with relative_to () in python
The concept of reference in Python collapsed for a moment, so I experimented a little.