Cython报错解决:#error Do not use this file, it is the result of a failed Cython compilation.
近来安装一个 python 程序需要用到 cython 编译器,python ./setup.py 过程中报错:
#error Do not use this file, it is the result of a failed Cython compilation.
后来发现是 cython 版本引起:
$cython -V
: Cython version 0.21
使用 pip* 卸载 0.21 并安装使用 0.20.2 可避免该错误:
pip uninstall cython
pip install http://cython.org/release/Cython-0.20.2.tar.gz