找回密码
 立即注册
查看: 266|回复: 0

ARM m1 mac 安装 grpcio 报错

[复制链接]
发表于 2022-7-7 18:43 | 显示全部楼层 |阅读模式
grpcio
  [end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
WARNING: No metadata found in /Users/bot/.local/share/virtualenvs/svddb-zjMY7Kbc/lib/python3.9/site-packages
Rolling back uninstall of grpcio
Moving to /Users/bot/.local/share/virtualenvs/svddb-zjMY7Kbc/lib/python3.9/site-packages/grpc/
from /Users/bot/.local/share/virtualenvs/svddb-zjMY7Kbc/lib/python3.9/site-packages/~rpc
Moving to /Users/bot/.local/share/virtualenvs/svddb-zjMY7Kbc/lib/python3.9/site-packages/grpcio-1.37.0.dist-info/
from /Users/bot/.local/share/virtualenvs/svddb-zjMY7Kbc/lib/python3.9/site-packages/~rpcio-1.37.0.dist-info
error: legacy-install-failure

× Encountered error while trying to install package.
╰─> grpcio

note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.
解决办法:
先使用 brew 安装 openssl

brew install openssl
使用下面的命令安装:

CFLAGS="-I/opt/homebrew/opt/openssl/include" LDFLAGS="-L/opt/homebrew/opt/openssl/lib" GRPC_PYTHON_BUILD_SYSTEM_OPENSSL=1 GRPC_PYTHON_BUILD_SYSTEM_ZLIB=1 pip install grpcio

milvus 的团队害怕 grpcio 升级后,protobuf 序列化反序列化出来的结果会发生变化,就很无脑的把 grpcio 的版本写死了。恰巧那个 grpcio 对 apple silicon 支持有问题。详细可看:https://github.com/milvus-io/...

https://segmentfault.com/a/1190000041370564/
懒得打字嘛,点击右侧快捷回复 【右侧内容,后台自定义】
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

小黑屋|手机版|Unity开发者联盟 ( 粤ICP备20003399号 )

GMT+8, 2024-11-25 23:15 , Processed in 0.090248 second(s), 25 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表