python - build sklearn error cythonize failed -
$ sudo python setup.py build
gives me following:
partial import of sklearn during build process. generating cython files cythonizing sources sklearn processing sklearn/_isotonic.pyx traceback (most recent call last): file "/home/scikit-learn/build_tools/cythonize.py", line 198, in <module> main(root_dir_arg) file "/home/ascikit-learn/build_tools/cythonize.py", line 190, in main check_and_cythonize(root_dir) file "/home/scikit-learn/build_tools/cythonize.py", line 182, in check_and_cythonize cythonize_if_unchanged(cur_dir, cython_file, gen_file, hashes) file "/home/scikit-learn/build_tools/cythonize.py", line 156, in cythonize_if_unchanged cythonize(full_cython_path, full_gen_file_path) file "/home/scikit-learn/build_tools/cythonize.py", line 61, in cythonize raise exception('building scikit-learn requires cython >= 0.21') exception: building scikit-learn requires cython >= 0.21 traceback (most recent call last): file "setup.py", line 297, in <module> setup_package() file "setup.py", line 280, in setup_package generate_cython() file "setup.py", line 185, in generate_cython raise runtimeerror("running cythonize failed!") runtimeerror: running cythonize failed!
while cython installed:
processing ./cython-0.24-cp27-cp27mu-manylinux1_x86_64.whl installing collected packages: cython found existing installation: cython 0.24 uninstalling cython-0.24: uninstalled cython-0.24 installed cython-0.24