Mac OS build caffe2 Error:This file was generated by an older version of protoc which is
2024-08-25 00:30:48
问题所在
我们可以发现这个错误跟protobuf的版本有关,因此我们可以执行script/diagnose_protobuf.py
我们可以看到,pip install protobuf 和 brew install protobuf 的版本不一样导致的
解决办法
- 更新brew的版本 brew install protobuf@3.4 直接指定版本3.4,根据你的需求作相应的改变
- brew link --force --overwrite protobuf@3.4 链接到3.4,因为你的机器上可能装了多个版本
- protoc --version
- 如果两个版本一样的花,再次执行script/diagnose_protobuf.py 输出:All looks good.
最新文章
- Unity四元数小问题整理
- ASP.NET Core 开发-Entity Framework (EF) Core 1.0 Database First
- Qt使用自带的windeployqt 生成exe来发布软件
- paper 82:边缘检测的各种微分算子比较(Sobel,Robert,Prewitt,Laplacian,Canny)
- Spring Dynamic Modules - DMserver
- HASH JOIN算法
- Codeforces 219D Choosing Capital for Treeland
- mysql sql_mode 之 NO_ENGINE_SUBSTITUTION
- Hbase Region Server 启动失败
- 学习笔记:javascript内置对象:字符串对象
- Android开发的过去、现在和将来
- python全栈开发-Day2 布尔、流程控制、循环
- springboot-项目获取resources下文件碰到的问题(classPath下找不到文件和文件名乱码)
- java中比较特殊的三个浮点数Infinity、-Infinity、NaN
- php如何实现原址排序数组使奇数位于偶数前面(代码)
- chartControl ViewType.Bar 用法测试
- phpize是什么
- pycharm 调试django项目时,debug断点没反应???
- Reflections - Java 8 - invalid constant type
- Xshell 连接 CentOS 7 与 Ubuntu Server
热门文章
- 1055 - Expression #1 of ORDER BY clause is not in GROUP BY clause and contains nonaggregated column 'information_schema.PROFILING.SEQ' which is not functionally dependent on columns in GROUP BY clause
- DK NIO的BUG,例如臭名昭著的epoll bug,它会导致Selector空轮询,最终导致CPU 100%。
- CSS cursor 属性
- Python程序员的10个常见错误(转)
- windbg遍历进程页表查看内存
- 你应该知道的vim插件之surround.vim
- 网络爬虫值scrapy框架基础
- SVM支持向量机总结
- IDEA 编译报错: 未结束的字符串文字
- firewall 防火墙相关