安装caffe我是大体按照
https://blog.csdn.net/qq_37662375/article/details/104510184
这位仁兄的的经验来走的(当然在此之前我还有调了python和pip的优先级,教程例如:
https://blog.csdn.net/weixin_40332685/article/details/107570215
)
其中Protobuf和caffe安装最新的就行
Protobuf和caffe有可能下载不顺利 我直接把源码导到码云里面了下载速度贼快~ 哈哈哈
https://gitee.com/li-shuo1995/protobuf.git
https://gitee.com/li-shuo1995/caffe.git
如果怕不保险了也可以自己导入试试,贼方便~ 哈哈哈
期间遇到的坑
“Command “python setup.py egg_info” failed with error code 1 in /tmp/pip-build-we4e8spa/h5py/”
解决方法:
sudo python -m pip install --upgrade --force pip
sudo pip install setuptools==41.6.0
“ERROR: launchpadlib 1.10.6 requires testresources, which is not installed.”
解决方法:
pip install testresources
”No module named ‘setuptools.build_meta’"
解决方法:
sudo pip install setuptools==41.6.0
这里又说了一遍,因为真的记忆由心
setuptools 目前最新的57.0.0 我是真没编译过去。
若是还遇见其他坑请见
https://blog.csdn.net/liuqixuan1994/article/details/112347654
还有这个应该是0.17版本的caffe他要求是numpy版本要1.18.1以上 但是亲测1.17.0也是可以的() 哈哈~
最终
哈哈哈~
如有侵权,请尽快联系我。