1.下载cython
2.解压缩
tar xzvf Cython-0.25.2.tar.gz
3.安装
cd Cython-0.25.2
sudo python setup.py install
python setup.py build_ext --inplace
3.测试
新建test.py
cython test.py
gcc -shared -fPIC test.c -o xx.so
rm -r test.c test.py
1.下载cython
2.解压缩
tar xzvf Cython-0.25.2.tar.gz
3.安装
cd Cython-0.25.2
sudo python setup.py install
python setup.py build_ext --inplace
3.测试
新建test.py
cython test.py
gcc -shared -fPIC test.c -o xx.so
rm -r test.c test.py