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

又来打扰各位大神了,关于 mac 下安装 scrapy 的问题

  •  
  •   erse · 2014-12-01 15:39:14 +08:00 · 7668 次点击
    这是一个创建于 3425 天前的主题,其中的信息可能已经有所发展或是发生改变。
    在mac下安装scrapy的时候出现removing: _configtest.c _configtest.o
    c/_cffi_backend.c:13:10: fatal error: 'ffi.h' file not found
    怎么解决?谢谢大家
    第 1 条附言  ·  2014-12-01 23:09:37 +08:00
    http://stackoverflow.com/questions/22875270/error-installing-bcrypt-with-pip-on-os-x-cant-find-ffi-h-libffi-is-installed
    这里面的这个方法已经试过,还是行,不知道为何。
    sudo C_INCLUDE_PATH=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/usr/include/libxml2:/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/usr/include/libxml2/libxml:/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/usr/include python setup.py install
    这是我的安装命令
    5 条回复    2014-12-01 23:08:24 +08:00
    messense
        1
    messense  
       2014-12-01 16:20:21 +08:00   ❤️ 1
    试试 brew install libffi 后再安装
    messense
        2
    messense  
       2014-12-01 16:21:14 +08:00
    1989922yan
        3
    1989922yan  
       2014-12-01 17:06:17 +08:00   ❤️ 1
    我能提供的方法是: https://awk.so/

    任何程序员无法解决的问题,最终都是不会翻墙引起的。
    erse
        4
    erse  
    OP
       2014-12-01 23:07:30 +08:00
    @messense 试过,不行,不知道为啥
    erse
        5
    erse  
    OP
       2014-12-01 23:08:24 +08:00
    @1989922yan 不好意思,我也是翻墙爱好者,但确实是没找到解决的办法才来问的
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   3996 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 05:09 · PVG 13:09 · LAX 22:09 · JFK 01:09
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.