milvus-logo
LFAI
Home
  • Get Started

Install Milvus Python SDK

This topic describes how to install Milvus Python SDK for Milvus.

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

Requirements

  • Python 3.6 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.1.x

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:

Feedback

Was this page helpful?