A-A+

#异常# how to “pip install MySQLdb”

2018年01月03日 异常 暂无评论 阅读 31 次

问题

how to "pip install MySQLdb"

解决

1、

# 一、Ubuntu 14, Ubuntu 16, Debian 8.6 (jessie)
sudo apt-get install python-pip python-dev libmysqlclient-dev
# 如果找不到libmysqlclient-dev尝试如下, 再找不到 apt search
sudo apt-get install default-libmysqlclient-dev
# 二、Fedora 24
sudo dnf install python python-devel mysql-devel redhat-rpm-config gcc
# 三、Mac OS
brew install mysql-connector-c
# if that fails, try
brew install mysql

2、

sudo pip install MySQL-python

转载地址:https://stackoverflow.com/questions/25865270/how-to-install-python-mysqldb-module-using-pip

标签:

给我留言

Copyright © C/C++程序员之家 保留所有权利.   Theme  Ality 浙ICP备15011757号-3

用户登录