pymilvus 2.6.2


pip install pymilvus

  Latest version

Released: Sep 18, 2025

Project Links

Meta
Author: Milvus Team
Requires Python: >=3.8

Classifiers

Programming Language
  • Python :: 3
  • Python :: 3.8
  • Python :: 3.9
  • Python :: 3.10
  • Python :: 3.11
  • Python :: 3.12
  • Python :: 3.13

License
  • OSI Approved :: Apache Software License

Milvus Python SDK

version Supported Python Versions Downloads Downloads Downloads

license Static Badge

Python SDK for Milvus. To contribute code to this project, please read our contribution guidelines first. If you have some ideas or encounter a problem, you can find us in the Slack channel #py-milvus.

Compatibility

The following collection shows Milvus versions and recommended PyMilvus versions:

Milvus version Recommended PyMilvus version
1.0.* 1.0.1
1.1.* 1.1.2
2.0.* 2.0.2
2.1.* 2.1.3
2.2.* 2.2.15
2.3.* 2.3.7
2.4.* 2.4.X
2.5.* 2.5.X
2.6.* 2.6.X

Installation

You can install PyMilvus via pip or pip3 for Python 3.8+:

$ pip3 install pymilvus
$ pip3 install pymilvus[model] # for milvus-model
$ pip3 install pymilvus[bulk_writer] # for bulk_writer

You can install a specific version of PyMilvus by:

$ pip3 install pymilvus==2.4.10

You can upgrade PyMilvus to the latest version by:

$ pip3 install --upgrade pymilvus

FAQ

Q1. How to get submodules?

A1. The following command will get the protos matching to the generated files, for protos of certain version, see milvus-proto for details.

$ git submodule update --init

Q2. How to generate python files from milvus-proto?

A2.

$ make gen_proto

Q3. How to use the local PyMilvus repository for Milvus server?

A3.

$ make install

Q4. How to check and auto-fix the coding styles?

A4.

make lint
make format

Q5. How to set up pre-commit hooks to automatically check and fix the coding styles?

Once installed, the hooks will automatically run make format and make lint before each commit. If the checks fail, the commit will be aborted, and you'll need to fix the issues before committing again.

A5. Pre-commit hooks help ensure code quality by automatically running linting and formatting checks before each commit.

# Install pre-commit (if not already installed)
$ pip install pre-commit

# Install the git hook scripts
$ pre-commit install

Q7. How to run unittests?

A7

$ pip install ".[dev]"
$ make unittest

Q8. zsh: no matches found: pymilvus[model], how do I solve this?

A8

$ pip install "pymilvus[model]"

Documentation

Documentation is available online: https://milvus.io/api-reference/pymilvus/v2.4.x/About.md

Developing package releases

The commits on the development branch of each version will be packaged and uploaded to Test PyPI.

The package name generated by the development branch is x.y.z.rc, where is the number of commits that differ from the most recent release.

  • For example, after the release of 2.3.4, two commits were submitted on the 2.3 branch. The version number of the latest commit of 2.3 branch is 2.3.5.rc2.

  • For example, after the release of 2.3.4, 10 commits were submitted on the master branch. The version number of the latest commit of master branch is 2.4.0.rc10.

To install the package on Test PyPi, you need to append --extra-index-url after pip, for example:

$ python3 -m pip install --extra-index-url https://test.pypi.org/simple/ pymilvus==2.1.0.dev66

License

Apache License 2.0

2.6.2 Sep 18, 2025
2.6.1 Aug 29, 2025
2.6.0 Aug 06, 2025
2.6.0b0 Jun 18, 2025
2.5.16 Sep 19, 2025
2.5.15 Aug 21, 2025
2.5.14 Jul 21, 2025
2.5.13 Jul 18, 2025
2.5.12 Jul 02, 2025
2.5.11 Jun 10, 2025
2.5.10 May 23, 2025
2.5.9 May 19, 2025
2.5.8 Apr 28, 2025
2.5.7 Apr 23, 2025
2.5.6 Mar 21, 2025
2.5.5 Mar 06, 2025
2.5.4 Jan 22, 2025
2.5.3 Jan 02, 2025
2.5.2 Dec 26, 2024
2.5.1 Dec 23, 2024
2.5.0 Nov 26, 2024
2.4.15 Feb 24, 2025
2.4.14 Jan 22, 2025
2.4.13 Dec 26, 2024
2.4.12 Dec 23, 2024
2.4.11 Dec 20, 2024
2.4.10 Nov 26, 2024
2.4.9 Oct 29, 2024
2.4.8 Oct 12, 2024
2.4.7 Sep 25, 2024
2.4.6 Aug 30, 2024
2.4.5 Aug 09, 2024
2.4.4 Jun 20, 2024
2.4.3 May 17, 2024
2.4.2 May 14, 2024
2.4.1 Apr 29, 2024
2.4.0 Mar 20, 2024
2.3.8 Aug 02, 2024
2.3.7 Mar 13, 2024
2.3.6 Jan 24, 2024
2.3.5 Jan 03, 2024
2.3.4 Dec 04, 2023
2.3.3 Nov 10, 2023
2.3.2 Oct 26, 2023
2.3.1 Sep 22, 2023
2.3.0 Aug 23, 2023
2.3.0b1 Mar 20, 2023
2.2.17 Nov 14, 2023
2.2.16 Sep 15, 2023
2.2.15 Aug 09, 2023
2.2.14 Jul 24, 2023
2.2.13 Jun 28, 2023
2.2.12 Jun 16, 2023
2.2.11 Jun 14, 2023
2.2.9 Jun 02, 2023
2.2.8 Apr 28, 2023
2.2.7 Apr 18, 2023
2.2.6 Apr 13, 2023
2.2.5 Apr 11, 2023
2.2.4 Mar 29, 2023
2.2.3 Mar 17, 2023
2.2.2 Feb 10, 2023
2.2.1 Dec 15, 2022
2.2.0 Nov 18, 2022
2.1.3 Sep 28, 2022
2.1.2 Sep 09, 2022
2.1.1 Aug 12, 2022
2.1.0 Jul 22, 2022
2.0.2 Apr 02, 2022
2.0.1 Feb 23, 2022
2.0.0 Jan 25, 2022
2.0.0rc9 Dec 31, 2021
2.0.0rc8 Nov 01, 2021
2.0.0rc7 Oct 11, 2021
2.0.0rc6 Sep 10, 2021
2.0.0rc5 Aug 30, 2021
2.0.0rc4 Aug 11, 2021
2.0.0rc2 Jul 12, 2021
2.0.0rc1 Jun 28, 2021
1.1.2 Jun 09, 2021
1.1.1 May 28, 2021
1.1.0 Apr 29, 2021
1.0.1 Mar 08, 2021
1.0.0 Mar 05, 2021
0.4.0 Jan 21, 2021
0.3.0 Oct 16, 2020
0.2.15 Jan 06, 2021
0.2.14 Jul 20, 2020
0.2.13 Jun 13, 2020
0.2.12 May 29, 2020
0.2.11 May 15, 2020
0.2.10 Apr 15, 2020
0.2.9 Mar 29, 2020
0.2.8 Mar 11, 2020
0.2.7 Jan 16, 2020
0.2.6 Dec 07, 2019
0.2.5 Nov 13, 2019
0.2.4 Oct 30, 2019
0.2.3 Oct 21, 2019
0.2.2 Oct 12, 2019
0.2.1 Sep 26, 2019
0.2.0 Sep 12, 2019
0.1.25 Aug 03, 2019
0.1.24 Jul 18, 2019
0.1.23 Jul 12, 2019
0.1.22 Jul 10, 2019
0.1.21 Jul 09, 2019
0.1.20 Jul 09, 2019
0.1.19 Jul 08, 2019
0.1.18 Jul 08, 2019
0.1.17 Jul 07, 2019
0.1.16 Jul 04, 2019
0.1.15 Jul 04, 2019
0.1.14 Jul 02, 2019
0.1.13 Jun 30, 2019
0.1.12 Jun 28, 2019
0.1.11 Jun 28, 2019
0.1.10 Jun 26, 2019
0.1.9 Jun 25, 2019
0.1.8 Jun 25, 2019
0.1.7 Jun 24, 2019
0.1.6 Jun 21, 2019
0.1.5 Jun 21, 2019
0.1.4 Jun 21, 2019
0.1.3 Jun 20, 2019
0.1.2 Jun 18, 2019
0.1.1 Jun 18, 2019
0.1.0 Jun 16, 2019

Wheel compatibility matrix

Platform Python 3
any

Files in release

Extras:
Dependencies:
setuptools (>69)
setuptools (<70.1)
grpcio (!=1.68.0,!=1.68.1,!=1.69.0,!=1.70.0,!=1.70.1,!=1.71.0,!=1.72.1,!=1.73.0,>=1.66.2)
protobuf (>=5.27.2)
python-dotenv (<2.0.0,>=1.0.1)
ujson (>=2.0.0)
pandas (>=1.2.4)
numpy (<1.25.0)