diff --git a/src/device/requirements.in b/src/device/requirements.in
index 70daceaea5b09b0db659c6a864bc994a76f57a78..96faa95c5a7f403835049d969552436c464f4813 100644
--- a/src/device/requirements.in
+++ b/src/device/requirements.in
@@ -14,3 +14,9 @@ xmltodict==0.12.0
 tabulate
 ipaddress
 macaddress
+
+# pip's dependency resolver does not take into account installed packages.
+# p4runtime does not specify the version of grpcio/protobuf it needs, so it tries to install latest one
+# adding here again grpcio==1.47.* and protobuf==3.20.* with explicit versions to prevent collisions
+grpcio==1.47.*
+protobuf==3.20.*