Ubuntu 14.04 Install mysqlclient for Python2.7
Ubuntu14.04系统Python默认版本是2.7.6
pip升级后通过pip安装一些python包时报如下两个告警(SNIMissingWarning和InsecurePlatformWarning),其实是SSL的问题,urllib3需要pyopenssl
2.安装依赖
sudo apt-get install python-dev libmysqlclient-dev
3.安装mysqlclient驱动
sudo pip install mysqlclient
报SNIMissingWarning和InsecurePlatformWarning告警
4.通过安装pyopenssl等依赖包解决这两个告警问题
sudo apt-get install libffi-dev libssl-dev
pip install cryptography
pip install pyopenssl ndg-httpsclient pyasn1
参考:https://urllib3.readthedocs.org/en/latest/security.html#snimissingwarning
相关推荐
Kwong 2020-05-14
llwang0 2020-05-12
sherry颖 2020-05-12
iFlyAI 2020-09-14
xinhao 2020-07-20
taiyangshenniao 2020-06-25
pythonxuexi 2020-06-25
zhaobig 2020-06-25
qingqingpiaoguo 2020-06-22
yjsflxiang 2020-06-14
txlCandy 2020-06-09
bizercsdn 2020-06-08
JakobHu 2020-05-27
davidliu00 2020-05-26