wxpy文档链接
http://wxpy.readthedocs.io/zh/latest/bot.html
mysql安装:
1.下载压缩包
wget http://sourceforge.net/projects/mysql-python/files/mysql-python/1.2.3/MySQL-python-1.2.3.tar.gz
2.解压
tar zxvf MySQL-python-1.2.3.tar.gz
3.安装
$ cd MySQL-python-1.2.3
$ python setup.py build
$ python setup.py install
注:如果在执行:python setup.py build 遇到以下错误:复制代码代码如下:
EnvironmentError: mysql_config not found
首先查找mysql_config的位置,使用find / -name mysql_config ,比如我的在/usr/local/mysql/bin/mysql_config修改setup_posix.py文件,在26行:mysql_config.path = “mysql_config” 修改为:复制代码代码如下:
mysql_config.path = “/usr/local/mysql/bin/mysql_config”
保存后,然后再次执行:复制代码代码如下:
python setup.py buildpython setup.py install
OK,到此大功告成。
网友评论