build scipy error cythonize failed

前端 未结 2 821
庸人自扰
庸人自扰 2020-12-30 21:30

I\'m trying to build scipy and I get a RuntimeError:

$sudo python setup.py build
Processing scipy/cluster/_vq_rewrite.pyx
Traceback (most recent call last):
         


        
相关标签:
2条回答
  • 2020-12-30 21:45

    Python setuptools solved the problem.

    http://docs.cython.org/src/quickstart/install.html
    easy_install cython or pip install cython

    0 讨论(0)
  • 2020-12-30 21:46

    If you do not have Cython installed then use: pip install Cython. However, if you do have an old version of Cython installed like me then this is what solved it for me: pip install --upgrade Cython

    0 讨论(0)
提交回复
热议问题