milvus-logo
LFAI
Home
  • Get Started

Install Milvus Python SDK

This topic describes how to install Milvus python SDK pymilvus for Milvus.

Current version of Milvus supports SDKs in Python, Node.js, GO, and Java.

Requirements

  • Python 3.7 or later is required.
  • Google protobuf is installed. You can install it with the command pip3 install protobuf==3.20.0.
  • grpcio-tools is installed. You can install it with the command pip3 install grpcio-tools.

Install PyMilvus via pip

PyMilvus is available in Python Package Index.

It is recommended to install a PyMilvus version that matches the version of the Milvus server you installed. For more information, see Release Notes.
$ python3 -m pip install pymilvus==2.5.0

Verify installation

If PyMilvus is correctly installed, no exception will be raised when you run the following command.

$ python3 -c "from pymilvus import Collection"

What’s next

Having installed PyMilvus, you can:

Try Managed Milvus for Free

Zilliz Cloud is hassle-free, powered by Milvus and 10x faster.

Get Started
Feedback

Was this page helpful?