一开始用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
janxin 2015-06-26 15:06:16 +08:00 1
sudo xcode-select --install,这个应该就能解决了
|
2
gzxultra OP @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 ``` |
3
yangtukun1412 2015-06-26 15:35:05 +08:00
没装openssl?尝试装下 openssl 和 openssl-devel 看看
|
4
yangzh 2015-06-27 13:58:16 +08:00 via iPhone
就是没有安装ssl?
|