grpc with python 2

65 views
Skip to first unread message

bhaskar rana

unread,
Mar 29, 2022, 9:50:35 PM3/29/22
to grpc.io
Hi Grpc team,

I want to run  python 2 with grpc, i did see it require 3.5+.
Is there any way to run grpc with python 2.
Kindly assit

Regards
Bhaskar Rana

Vinod Lasrado

unread,
Mar 30, 2022, 11:39:21 AM3/30/22
to grpc.io
Hi Bhaskar,
   Support for python 2 was dropped in 2020. 

--Vinod

Richard Belleville

unread,
Mar 30, 2022, 1:33:41 PM3/30/22
to grpc.io
Bhaskar,

As Vinod pointed out, yes, Python 2 support was dropped in 2020. However, all previous releases supporting Python 2 should theoretically continue working. Try pinning to grpcio==1.39.0.

Realistically speaking though, you should really consider moving off of Python 2. No bug or security fixes are being backported to this version, so you put yourself at more and more risk over time by sticking with Python 2.

Reply all
Reply to author
Forward
0 new messages