Installing/Upgrading

Installing via pip

PyMilvus is in PYPI.

PyMilvus only suport python3(>= 3.5), usually it's ok to install PyMilvus like below.

$ python3 -m pip install pymilvus

Installing in an virtual environment

It is recommended to use PyMilvus in an virtul environment, so modules and environment won't be conflicted. We use virtualenv as an example to demenstrate how to install and using PyMilvus in an virtual environment. See virtualenv for more information about why and how.

$ python3 -m pip install virtualenv
$ virtualenv venv
$ source venv/bin/activate
(venv) $ pip install pymilvus

If you want to exit the virtualenv venv, you can use deactivate.

(venv) $ deactivate
$

Installing a spacific PyMilvus version

Here we assume you are already in a virtual environment.

Suitable PyMilvus version is depended on Milvus version your are using. See install pymilvus for recommended pymilvus version.

If you want to install a spacific verison of PyMilvus:

(venv) $ pip install pymilvus==0.3.0

If you want to upgrade PyMilvus into newest version:

(venv) $ pip install --upgrade pymilvus