为什么我在mac上获得InsecurePlatformWarning?

时间:2015-05-01 16:35:06

标签: python pip

当我跑pip freeze时,我收到以下警告:

/Library/Python/2.7/site-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:79: 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时,似乎建议可以忽略它。是对的吗?这是我需要解决的问题吗?

1 个答案:

答案 0 :(得分:0)

按照以下步骤操作:

brew install openssl
ln -s /usr/local/Cellar/openssl/1.0.2c/include/openssl /usr/local/include/openssl
pip install --upgrade urllib3
pip install pyopenssl ndg-httpsclient pyasn1