通过 pip 安装 grpcio:“legacy-install-failure”

par*_*aee 2 python django pip grpcio

我想使用 pip(版本 1.35)安装 grpcio。\n但是我收到此错误:

\n
note: This error originates from a subprocess, and is likely not a problem with pip.\nerror: legacy-install-failure\n\n\xc3\x97 Encountered error while trying to install package.\n\xe2\x95\xb0\xe2\x94\x80> grpcio\n
Run Code Online (Sandbox Code Playgroud)\n

我尝试安装 python-dev 或wheel,但没有成功。

\n

我的Python版本= 3.10

\n

乌班图 = 22.04

\n

小智 7

我遇到过同样的问题。增加 grcpio 的版本对我有帮助。1.46.3版本安装没有任何问题