Protobuf Error

According to Protobuf 3.20.1 which is incompatible, I understand that I show Install protobuf<3.20,>=3.9.2 .
However, when I add protobuf~=3.19.0 in requirements.txt as Streamlit run with protocbuf error, I found new error

Streamlit 1.19.0 is present. Installing protobuf 3.20.1

Collecting protobuf==3.20.1

  Downloading protobuf-3.20.1-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.whl (1.0 MB)

     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.0/1.0 MB 27.2 MB/s eta 0:00:00[2023-03-07 13:10:08.494593] 

Installing collected packages: protobuf

  Attempting uninstall: protobuf

    Found existing installation: protobuf 3.19.6

    Uninstalling protobuf-3.19.6:

      Successfully uninstalled protobuf-3.19.6

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.

Seemingly it will install 3.20.1 by default, however if I set a compatible version, it will be automatically uninstalled.

1 Like

Delete the line with protobuf and let pip resolve the dependencies itself.

This doesn’t work…

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.