Python
共 3 篇文章
ubuntu16.04 pip install MySQL-Python error
1.ubuntu16.04,通过python2.7.11的pip安装mysql-python失败,提示: Complete output from command python setup.py egg_info: sh: 1: mysql_config: not found Traceback (most recent call last): File "<string>", line 1, in <module> File "/tmp/pip-build-_SYH5V/MySQL-python/setup.py", line 17, in <module> metadata, optio…
ubuntu16.04 install pip pip3
1.ubuntu16.04 默认已经安装了python2.7.11和python3.5 2.安装python2的pip sudo apt-get install python-pip 4.安装python3的pip3 sudo apt-get install python3-pip
Ubuntu 14.04 Install mysqlclient for Python2.7
Ubuntu14.04系统Python默认版本是2.7.6 pip升级后通过pip安装一些python包时报如下两个告警(SNIMissingWarning和InsecurePlatformWarning),其实是SSL的问题,urllib3需要pyopenssl 1.首先安装mysql server,见:http://rule.iteye.com/admin/blogs/2276278 2.安装依赖 sudo apt-get install python-dev libmysqlclient-dev 3.安装mysqlclient驱动 sudo pip install mysqlclien…