python import caffe时 报错【三】:ImportError: No module named Cython.Distutils

刚装好caffe,想网上查一下caffe的案例跑一跑

下载faster r-cnn:

git clone --recursive https://github.com/rbgirshick/py-faster-rcnn.git

进入py-faster-rcnn/lib

make

这时候发现问题如下:

Traceback (most recent call last):
 File "<stdin>", line 1, in <module>
 ImportError: No module named Cython.Distutils

 则表示你的确没有Cython.Distutils。

解决办法:

在终端输入:

sudo pip install cython

  进行Cython的安装

安装完,然后再

进入py-faster-rcnn/lib

make

发现成功!!!

猜你喜欢

转载自blog.csdn.net/qq_38451119/article/details/81118755