Pypy:pip install lxml

时间:2015-10-02 10:17:48

标签: python linux lxml pypy

我正在尝试将pypy 2.6.1安装到虚拟环境中。我按照这里的说明操作:http://pypy.readthedocs.org/en/latest/install.html工作正常。但问题是当我试图在virtualenv中安装其他一些东西时。其中一个人将lxml作为依赖关系,这就是发生的事情:

src/lxml/lxml.etree.c:4276:68: error: ‘PyThreadState’ has no member named ‘c_tracefunc’
                   (tstate->c_profilefunc || (CYTHON_TRACE && tstate->c_tracefunc))) {\
                                                                    ^
src/lxml/lxml.etree.c:34578:3: note: in expansion of macro ‘__Pyx_TraceCall’
   __Pyx_TraceCall("_htmlNameIsValid", __pyx_f[4], 1596, 0, {__pyx_filename = __pyx_f[4]; __pyx_lineno = 1596; __pyx_clineno = __LINE__; goto __pyx_L1_error;});
   ^
src/lxml/lxml.etree.c:4284:26: error: ‘PyThreadState’ has no member named ‘use_tracing’
       if (unlikely(tstate->use_tracing) && !tstate->tracing &&\
                          ^
src/lxml/lxml.etree.c:555:43: note: in definition of macro ‘unlikely’
   #define unlikely(x) __builtin_expect(!!(x), 0)
                                           ^
src/lxml/lxml.etree.c:34578:3: note: in expansion of macro ‘__Pyx_TraceCall’
   __Pyx_TraceCall("_htmlNameIsValid", __pyx_f[4], 1596, 0, {__pyx_filename = __pyx_f[4]; __pyx_lineno = 1596; __pyx_clineno = __LINE__; goto __pyx_L1_error;});
   ^
src/lxml/lxml.etree.c:4284:51: error: ‘PyThreadState’ has no member named ‘tracing’
       if (unlikely(tstate->use_tracing) && !tstate->tracing &&\
                                                   ^
src/lxml/lxml.etree.c:34578:3: note: in expansion of macro ‘__Pyx_TraceCall’
   __Pyx_TraceCall("_htmlNameIsValid", __pyx_f[4], 1596, 0, {__pyx_filename = __pyx_f[4]; __pyx_lineno = 1596; __pyx_clineno = __LINE__; goto __pyx_L1_error;});
   ^
src/lxml/lxml.etree.c:4285:22: error: ‘PyThreadState’ has no member named ‘c_profilefunc’
               (tstate->c_profilefunc || (CYTHON_TRACE && tstate->c_tracefunc))) {\
                      ^
src/lxml/lxml.etree.c:34578:3: note: in expansion of macro ‘__Pyx_TraceCall’
   __Pyx_TraceCall("_htmlNameIsValid", __pyx_f[4], 1596, 0, {__pyx_filename = __pyx_f[4]; __pyx_lineno = 1596; __pyx_clineno = __LINE__; goto __pyx_L1_error;});
   ^
src/lxml/lxml.etree.c:4285:64: error: ‘PyThreadState’ has no member named ‘c_tracefunc’
               (tstate->c_profilefunc || (CYTHON_TRACE && tstate->c_tracefunc))) {\
                                                                ^
src/lxml/lxml.etree.c:34578:3: note: in expansion of macro ‘__Pyx_TraceCall’
   __Pyx_TraceCall("_htmlNameIsValid", __pyx_f[4], 1596, 0, {__pyx_filename = __pyx_f[4]; __pyx_lineno = 1596; __pyx_clineno = __LINE__; goto __pyx_L1_error;});
   ^
src/lxml/lxml.etree.c:4342:25: error: ‘PyThreadState’ has no member named ‘use_tracing’

这只是一个样本,似乎有数以百万计的这样的行。它滚动得如此之快,我无法看到第一个错误是什么,它似乎永远不会结束。

我已经看到了这个问题和答案:how to install lxml with pypy in virtualenv它没有帮助。我还看到了How can I set up lxml and pypy on Yosemite?附加的问题和答案(这是针对yoesmite pypy 2.4,这是针对pypy 2.6和linux的),这也不起作用。

有没有其他人看到错误。

0 个答案:

没有答案