Chinaunix首页 | 论坛 | 博客
  • 博客访问: 622653
  • 博文数量: 142
  • 博客积分: 116
  • 博客等级: 入伍新兵
  • 技术积分: 1445
  • 用 户 组: 普通用户
  • 注册时间: 2010-09-28 08:37
文章分类

全部博文(142)

文章存档

2017年(7)

2016年(57)

2015年(48)

2014年(30)

我的朋友

分类: Python/Ruby

2015-11-30 19:04:10

从http://dev.mysql.com/downloads下载mysql-connector-python_2.1.3-1debian7.9_all.deb
dpkg -i mysql-connector-python_2.1.3-1debian7.9_all.deb
发生错误
  1. Selecting previously unselected package mysql-connector-python.
  2. (Reading database ... 53381 files and directories currently installed.)
  3. Unpacking mysql-connector-python (from mysql-connector-python_2.1.3-1debian7.9_all.deb) ...
  4. Setting up mysql-connector-python (2.1.3-1debian7.9) ...
  5. /var/lib/dpkg/info/mysql-connector-python.postinst: 1: /var/lib/dpkg/info/mysql-connector-python.postinst: python2.6: not found
  6. dpkg: error processing mysql-connector-python (--install):
  7. subprocess installed post-installation script returned error exit status 127
  8. Errors were encountered while processing:
  9. mysql-connector-python
是因为安装脚本里执行/usr/bin/pyversions -sv时返回2.6 2.7

解决方法:
ln -s /usr/bin/python2.7 /usr/bin/python2.6

阅读(1933) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~