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
gleymonkey
V2EX  ›  Python

Mac 下安装 mysqlclient 报错,请问如何解决,求助

  •  
  •   gleymonkey · 2017-06-24 20:11:11 +08:00 · 3791 次点击
    这是一个创建于 2469 天前的主题,其中的信息可能已经有所发展或是发生改变。

    初学 django,打算连接本机的 mysql 数据库,但是 pip install mysqlclient 报错,如下:

    kkccQ.png

    4 条回复    2019-05-09 15:13:39 +08:00
    DeanThompson
        1
    DeanThompson  
       2017-06-26 14:41:34 +08:00   ❤️ 1
    试一下这个

    env LDFLAGS="-I/usr/local/opt/openssl/include -L/usr/local/opt/openssl/lib" pip install mysqlclient
    gleymonkey
        2
    gleymonkey  
    OP
       2017-06-27 13:12:30 +08:00
    @DeanThompson 感谢,我试试
    Yunxiaoer
        3
    Yunxiaoer  
       2019-05-09 15:13:09 +08:00
    还是么有成功
    Yunxiaoer
        4
    Yunxiaoer  
       2019-05-09 15:13:39 +08:00
    @gleymonkey 你解决了吗 嘎嘎 好多年了
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   1039 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 22:37 · PVG 06:37 · LAX 15:37 · JFK 18:37
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.