关于arm:ARM-m1-mac-安装-pymilvus-报-grpcio-错

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.

解决办法:
应用上面的命令装置:

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 pymilvus

评论

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

这个站点使用 Akismet 来减少垃圾评论。了解你的评论数据如何被处理