ubuntu16.04 caffe2安装

版权声明:https://github.com/godspeedcurry 欢迎加好友哦 https://blog.csdn.net/qq_38677814/article/details/82785717

官网
不建议直接安装源码 第三方库下载到哭
git clone --recursive https://github.com/pytorch/pytorch.git
cd pytorch
git submodule update --init --recursive//下载中断可以使用
python setup.py install //安装
耐心等待即可完成
cd ~ && python -c 'from caffe2.python import core' 2>/dev/null && echo "Success" || echo "Failure"
测试是否完成
如果失败

手动
python
from caffe2.pytohn import core
报错
No module named google.protobuf.internal
solution:pip install protobuf

No module named past.builtins
solution:pip install future
done

猜你喜欢

转载自blog.csdn.net/qq_38677814/article/details/82785717