V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
haython
V2EX  ›  Python

MySQLdb 在机器上不安装 mysql 时,不能安装?

  •  
  •   haython · 2014-09-13 23:06:38 +08:00 · 3298 次点击
    这是一个创建于 3536 天前的主题,其中的信息可能已经有所发展或是发生改变。
    用的pip安装,提示mysql_config not found,本机没有安装mysql,肯定也就没有mysql_config
    3 条回复    2014-09-14 10:55:19 +08:00
    leyle
        1
    leyle  
       2014-09-13 23:19:22 +08:00   ❤️ 1
    mysql-dev 类似这个名字的c库必须要有,才能编译安装通过。
    ericls
        2
    ericls  
       2014-09-14 08:21:48 +08:00
    我开发的时候都用sqlite3。。
    julyclyde
        3
    julyclyde  
       2014-09-14 10:55:19 +08:00   ❤️ 1
    mysqldb是编译的,需要mysql客户端库
    建议用pymysql代替之
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   2637 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 12:40 · PVG 20:40 · LAX 05:40 · JFK 08:40
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.