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

本文介绍了一个由Cython版本导致的编译错误:#errorDo not use this file, it is the result of a failed Cython compilation。作者在安装某个Python程序时遇到此问题,发现是由于使用的Cython版本为0.21。通过卸载该版本并安装0.20.2版本解决了这一问题。
4028

被折叠的 条评论
为什么被折叠?



