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

pip install diesel 出问题

  •  
  •   gzxultra · 2015-06-26 14:51:23 +08:00 · 3361 次点击
    这是一个创建于 3438 天前的主题,其中的信息可能已经有所发展或是发生改变。

    一开始用pip install diesel,提示我libev版本太低,我更新了下,然后在运行install diesel就出现这样的问题了,google无解,求帮忙解决。

    Last login: Fri Jun 26 11:38:27 on ttys000
    gzxultra:~ gzxultra$ pip install diesel
    Collecting diesel
      Using cached diesel-3.0.24.zip
    Requirement already satisfied (use --upgrade to upgrade): greenlet in /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages (from diesel)
    Requirement already satisfied (use --upgrade to upgrade): twiggy in /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages (from diesel)
    Collecting pyopenssl (from diesel)
      Using cached pyOpenSSL-0.15.1-py2.py3-none-any.whl
    Collecting flask (from diesel)
      Using cached Flask-0.10.1.tar.gz
    Collecting http-parser>=0.7.12 (from diesel)
      Using cached http-parser-0.8.3.tar.gz
    Collecting dnspython (from diesel)
      Using cached dnspython-1.12.0.zip
    Collecting pyev (from diesel)
      Using cached pyev-0.9.0.tar.gz
    Requirement already satisfied (use --upgrade to upgrade): six>=1.5.2 in /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages (from pyopenssl->diesel)
    Collecting cryptography>=0.7 (from pyopenssl->diesel)
      Using cached cryptography-0.9.1.tar.gz
    Collecting Werkzeug>=0.7 (from flask->diesel)
      Using cached Werkzeug-0.10.4-py2.py3-none-any.whl
    Collecting Jinja2>=2.4 (from flask->diesel)
      Using cached Jinja2-2.7.3.tar.gz
    Collecting itsdangerous>=0.21 (from flask->diesel)
      Using cached itsdangerous-0.24.tar.gz
    Requirement already satisfied (use --upgrade to upgrade): idna in /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages (from cryptography>=0.7->pyopenssl->diesel)
    Requirement already satisfied (use --upgrade to upgrade): pyasn1 in /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages (from cryptography>=0.7->pyopenssl->diesel)
    Requirement already satisfied (use --upgrade to upgrade): setuptools in /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages (from cryptography>=0.7->pyopenssl->diesel)
    Requirement already satisfied (use --upgrade to upgrade): enum34 in /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages (from cryptography>=0.7->pyopenssl->diesel)
    Requirement already satisfied (use --upgrade to upgrade): ipaddress in /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages (from cryptography>=0.7->pyopenssl->diesel)
    Collecting cffi>=0.8 (from cryptography>=0.7->pyopenssl->diesel)
      Using cached cffi-1.1.2.tar.gz
    Collecting markupsafe (from Jinja2>=2.4->flask->diesel)
      Using cached MarkupSafe-0.23.tar.gz
    Requirement already satisfied (use --upgrade to upgrade): pycparser in /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages (from cffi>=0.8->cryptography>=0.7->pyopenssl->diesel)
    Installing collected packages: cffi, cryptography, pyopenssl, Werkzeug, markupsafe, Jinja2, itsdangerous, flask, http-parser, dnspython, pyev, diesel
      Running setup.py install for cffi
        Complete output from command /Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python -c "import setuptools, tokenize;__file__='/private/var/folders/jn/xxy7bf2128l5tj8hgk9t35jw0000gn/T/pip-build-Cxym1K/cffi/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /var/folders/jn/xxy7bf2128l5tj8hgk9t35jw0000gn/T/pip-UuYrhh-record/install-record.txt --single-version-externally-managed --compile:
        _configtest.c:1:1: error: thread-local storage is not supported for the current target
        __thread int some_threadlocal_variable_42;
        ^
        1 error generated.
        Note: will not use '__thread' in the C code
        The above error message can be safely ignored
        running install
        running build
        running build_py
        creating build
        creating build/lib.macosx-10.6-intel-2.7
        creating build/lib.macosx-10.6-intel-2.7/cffi
        copying cffi/__init__.py -> build/lib.macosx-10.6-intel-2.7/cffi
        copying cffi/api.py -> build/lib.macosx-10.6-intel-2.7/cffi
        copying cffi/backend_ctypes.py -> build/lib.macosx-10.6-intel-2.7/cffi
        copying cffi/cffi_opcode.py -> build/lib.macosx-10.6-intel-2.7/cffi
        copying cffi/commontypes.py -> build/lib.macosx-10.6-intel-2.7/cffi
        copying cffi/cparser.py -> build/lib.macosx-10.6-intel-2.7/cffi
        copying cffi/ffiplatform.py -> build/lib.macosx-10.6-intel-2.7/cffi
        copying cffi/gc_weakref.py -> build/lib.macosx-10.6-intel-2.7/cffi
        copying cffi/lock.py -> build/lib.macosx-10.6-intel-2.7/cffi
        copying cffi/model.py -> build/lib.macosx-10.6-intel-2.7/cffi
        copying cffi/recompiler.py -> build/lib.macosx-10.6-intel-2.7/cffi
        copying cffi/setuptools_ext.py -> build/lib.macosx-10.6-intel-2.7/cffi
        copying cffi/vengine_cpy.py -> build/lib.macosx-10.6-intel-2.7/cffi
        copying cffi/vengine_gen.py -> build/lib.macosx-10.6-intel-2.7/cffi
        copying cffi/verifier.py -> build/lib.macosx-10.6-intel-2.7/cffi
        copying cffi/_cffi_include.h -> build/lib.macosx-10.6-intel-2.7/cffi
        copying cffi/parse_c_type.h -> build/lib.macosx-10.6-intel-2.7/cffi
        running build_ext
        building '_cffi_backend' extension
        creating build/temp.macosx-10.6-intel-2.7
        creating build/temp.macosx-10.6-intel-2.7/c
        /usr/bin/clang -fno-strict-aliasing -fno-common -dynamic -arch i386 -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/usr/include/ffi -I/usr/include/libffi -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c c/_cffi_backend.c -o build/temp.macosx-10.6-intel-2.7/c/_cffi_backend.o
        c/_cffi_backend.c:13:10: fatal error: 'ffi.h' file not found
        #include <ffi.h>
                 ^
        1 error generated.
        error: command '/usr/bin/clang' failed with exit status 1
    
        ----------------------------------------
    Command "/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python -c "import setuptools, tokenize;__file__='/private/var/folders/jn/xxy7bf2128l5tj8hgk9t35jw0000gn/T/pip-build-Cxym1K/cffi/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /var/folders/jn/xxy7bf2128l5tj8hgk9t35jw0000gn/T/pip-UuYrhh-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/var/folders/jn/xxy7bf2128l5tj8hgk9t35jw0000gn/T/pip-build-Cxym1K/cffi
    
    第 1 条附言  ·  2015-06-26 15:29:23 +08:00
    用一楼的方法,sudo xcode-select --install解决了刚刚的问题,又蹦出来一大堆。。。
    为什么我的环境这么多问题呀。。。哭
    ```
    src/cryptography/hazmat/bindings/__pycache__/_Cryptography_cffi_a269d620xd5c405b7.c:217:10: fatal error: 'openssl/aes.h' file not found
    #include <openssl/aes.h>
    ^
    1 error generated.
    error: command '/usr/bin/clang' failed with exit status 1

    ----------------------------------------
    Command "/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python -c "import setuptools, tokenize;__file__='/private/var/folders/jn/xxy7bf2128l5tj8hgk9t35jw0000gn/T/pip-build-Eo1Yoi/cryptography/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /var/folders/jn/xxy7bf2128l5tj8hgk9t35jw0000gn/T/pip-DzyEip-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/var/folders/jn/xxy7bf2128l5tj8hgk9t35jw0000gn/T/pip-build-Eo1Yoi/cryptography
    ```
    4 条回复    2015-06-27 13:58:17 +08:00
    janxin
        1
    janxin  
       2015-06-26 15:06:16 +08:00   ❤️ 1
    sudo xcode-select --install,这个应该就能解决了
    gzxultra
        2
    gzxultra  
    OP
       2015-06-26 15:14:41 +08:00
    @janxin 谢谢,不过又换了个出错,这个怎么办。。
    ```
    src/cryptography/hazmat/bindings/__pycache__/_Cryptography_cffi_a269d620xd5c405b7.c:217:10: fatal error: 'openssl/aes.h' file not found
    #include <openssl/aes.h>
    ^
    1 error generated.
    error: command '/usr/bin/clang' failed with exit status 1

    ----------------------------------------
    Command "/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python -c "import setuptools, tokenize;__file__='/private/var/folders/jn/xxy7bf2128l5tj8hgk9t35jw0000gn/T/pip-build-s_VYL0/cryptography/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /var/folders/jn/xxy7bf2128l5tj8hgk9t35jw0000gn/T/pip-maY6nY-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/var/folders/jn/xxy7bf2128l5tj8hgk9t35jw0000gn/T/pip-build-s_VYL0/cryptography
    ```
    yangtukun1412
        3
    yangtukun1412  
       2015-06-26 15:35:05 +08:00
    没装openssl?尝试装下 openssl 和 openssl-devel 看看
    yangzh
        4
    yangzh  
       2015-06-27 13:58:16 +08:00 via iPhone
    就是没有安装ssl?
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   907 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 24ms · UTC 21:58 · PVG 05:58 · LAX 13:58 · JFK 16:58
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.