簡體   English   中英

我無法安裝庫 grpcio

[英]I can't install the library grpcio

當我安裝一個對話流 grpcio 它在運行時崩潰......

什么版本的 gRPC 以及我使用的是什么語言?

我正在安裝一個版本:

  • grpcio==1.30.0
  • 蟒蛇==3.6.9

輸出錯誤:

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/

我想出了如何解決。 問題在於設置工具。 將其降級到 49.6.0 並嘗試安裝它會起作用。

pip install setuptools==49.6.0 

參考: https : //github.com/grpc/grpc/issues/24037

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM