简体   繁体   中英

Using GRPC python without internet access and pip install for custom Linux distro

I need to run a GRPC server on a custom Linux distro, which has no access to inte.net or python pip. Can anyone please provide some guidance how I can generate the cygrpc.cp37-win_amd64 file specific to the platform**[32bit custom Linux with Python 3.7]**? I have noted that if I copy the grpc folder, the only error that comes up is that GRPC fails to import cygrpc

The solution I found for this problem is to use a Docker container with 32bit Linux(for eg RHEL) image and install gRPC in this container. After installation the platform specific cygrpc.cp.. file is generated inside _cython folder in grpc folder. Then it can be used wherever you need it.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM