Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

I can't install the library grpcio

When I'm install a dialogflow a grpcio it crashes when running...

What version of gRPC and what language I'm using?

I'm install a version:

  • grpcio==1.30.0
  • python==3.6.9

Output error:

Command "/usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-hpq5jtn0/grpcio/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-48xyxihh-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-hpq5jtn0/grpcio/
like image 868
Keiko Mori Avatar asked Nov 25 '25 10:11

Keiko Mori


1 Answers

I figured out how to solve. Problem is with setuptools. Downgrade it to 49.6.0 and try installing it will work.

pip install setuptools==49.6.0 

ref: https://github.com/grpc/grpc/issues/24037

like image 143
Keiko Mori Avatar answered Nov 27 '25 00:11

Keiko Mori



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!