系统环境
Ubuntu 16.04.2 LTS
mysql Ver 14.14 Distrib 5.7.18, for Linux (x86_64) using EditLine wrapper
Python 3.5.2
pip 9.0.1 from /usr/local/lib/python3.5/dist-packages (python 3.5)
查看Python相关模块版本
pip3 freeze
pip3 install module_name
pip3 uninstall module_name
使用virtualenv创建独立的Python运行环境
virtualenv --no-site-packages venv
source venv/bin/activate
进入virtualenv环境
deactivate 退出virtualenv环境
问题1:安装mysql-connector-python时出现“Unable to find Protobuf include directory”
https://stackoverflow.com/questions/43029672/unable-to-find-protobuf-include-directory
pip install mysql-connector==2.1.4