首页 百问百答 帖子详情
【报错】protobuf 3.20.3 which is incompatible.
收藏
快速回复
百问百答 问答学习资料 3709 7
【报错】protobuf 3.20.3 which is incompatible.
收藏
快速回复
百问百答 问答学习资料 3709 7

使用 padlle转onnx库paddle2onnx时候, protobuf版本太高,需要降低版本。

报错信息为:

ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
parl 1.4.1 requires pyzmq==18.1.1, but you have pyzmq 23.2.1 which is incompatible.
paddlepaddle-gpu 2.3.2.post112 requires protobuf<=3.20.0,>=3.1.0, but you have protobuf 3.20.3 which is incompatible.

解决方案:

卸载已经安装过的protobuf 版本,安装3.20.x以下的版本,例如使用3.19.0版本:

!pip uninstall -y protobuf 
!pip install protobuf==3.19.0

0
收藏
回复
全部评论(7)
时间顺序
宇宙物语
#2 回复于2023-01

正确的

0
回复
S
Super_AK47
#3 回复于2023-01

onnx 1.13.0 requires protobuf<4,>=3.20.2, but you have protobuf 3.19.0 which is incompatible.

1
回复
8
82321109
#4 回复于2023-04
onnx 1.13.0 requires protobuf<4,>=3.20.2, but you have protobuf 3.19.0 which is incompatible.

是呀,我也报这个错,paddle要求<=3.20.0,onnx又要求>=3.20.2,冲突啊怎办么?

0
回复
8
82321109
#5 回复于2023-04
是呀,我也报这个错,paddle要求<=3.20.0,onnx又要求>=3.20.2,冲突啊怎办么?

安装低版本的onnx又报一堆新的不兼容包,还需要再把其他好多包改版本。。。这是死循环了呀简直疯了要

0
回复
d
duffercn
#6 回复于2023-04
安装低版本的onnx又报一堆新的不兼容包,还需要再把其他好多包改版本。。。这是死循环了呀简直疯了要

你搞定了吗?最后都用的什么版本?

我今天也碰到这个问题,本来就打算安装个OCR,整了几个小时这个玩意,神经了

1
回复
w
woodrex83
#7 回复于2023-04
你搞定了吗?最后都用的什么版本? 我今天也碰到这个问题,本来就打算安装个OCR,整了几个小时这个玩意,神经了

退一个版本的onnx

pip install onnx==1.12.0

 

1
回复
w
woodrex83
#8 回复于2023-04
退一个版本的onnx pip install onnx==1.12.0  

补充一下,我用的protobuf是3.20.0

0
回复
在@后输入用户全名并按空格结束,可艾特全站任一用户