直接pip安装paddlerocr会报错

(paddal_1) C:\Users\Lenovo>pip install "paddleocr>=2.0.1"

报错显示

Installing collected packages: protobuf
  Attempting uninstall: protobuf
    Found existing installation: protobuf 3.20.0
    Uninstalling protobuf-3.20.0:
      Successfully uninstalled protobuf-3.20.0
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.
paddlepaddle-gpu 2.4.2.post117 requires protobuf<=3.20.0,>=3.1.0, but you have protobuf 3.20.3 which is incompatible.
Successfully installed protobuf-3.20.3

原因是protobuf这个包与我的paddlepaddle-gpu不兼容

尝试一:降低版本(失败)

(paddal_1) C:\Users\Lenovo>pip install protobuf==3.20.0

还是报错 

尝试二:安装onnx包

(paddal_1) C:\Users\Lenovo>pip install onnx==1.12.0

 

然后再次执行安装paddle的命令就成功了! 

 

 

Logo

魔乐社区(Modelers.cn) 是一个中立、公益的人工智能社区,提供人工智能工具、模型、数据的托管、展示与应用协同服务,为人工智能开发及爱好者搭建开放的学习交流平台。社区通过理事会方式运作,由全产业链共同建设、共同运营、共同享有,推动国产AI生态繁荣发展。

更多推荐