[安装并使用Milvus_CLI]

使用python安装

shell 复制代码
pip install milvus-cli

windows问题

可能出现如下报错:

shell 复制代码
(teach) C:\Users\12901\milvus>milvus_cli
Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "D:\miniconda3\envs\teach\Scripts\milvus_cli.exe\__main__.py", line 4, in <module>
  File "D:\miniconda3\envs\teach\Lib\site-packages\milvus_cli\scripts\milvus_cli.py", line 1, in <module>
    from .connection_cli import *
  File "D:\miniconda3\envs\teach\Lib\site-packages\milvus_cli\scripts\connection_cli.py", line 2, in <module>
    from .helper_cli import show, getList
  File "D:\miniconda3\envs\teach\Lib\site-packages\milvus_cli\scripts\helper_cli.py", line 10, in <module>
    from utils import WELCOME_MSG, EXIT_MSG, Completer, getPackageVersion
  File "D:\miniconda3\envs\teach\Lib\site-packages\milvus_cli\utils.py", line 1, in <module>
    import readline
ModuleNotFoundError: No module named 'readline'

提示需要安装readline

但是当你使用pip install readline时,又出现如下报错:

shell 复制代码
error: subprocess-exited-with-error

  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> [1 lines of output]
      error: this module is not meant to work on Windows
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

错误显示readline 是属于linux的,而不是windows

因此需要使用如下命令安装:

shell 复制代码
pip install pyreadline3

使用

在命令行输入milvus_cli

就会出现如下界面,代表安装成功

shell 复制代码
  __  __ _ _                    ____ _     ___
 |  \/  (_) |_   ___   _ ___   / ___| |   |_ _|
 | |\/| | | \ \ / / | | / __| | |   | |    | |
 | |  | | | |\ V /| |_| \__ \ | |___| |___ | |
 |_|  |_|_|_| \_/  \__,_|___/  \____|_____|___|

Milvus cli version: 1.0.2
Pymilvus version: 2.5.9

Learn more: https://github.com/zilliztech/milvus_cli.
相关推荐
大数据张老师16 小时前
对比Redis与向量数据库(如Milvus)在AI中的应用
数据库·redis·milvus
小oo呆5 天前
【自然语言处理与大模型】向量数据库:Milvus使用指南
人工智能·自然语言处理·milvus
hificamera6 天前
milvus学习笔记
milvus·向量数据库
游王子7 天前
Milvus(23):过滤
milvus
取啥都被占用8 天前
milvus+flask山寨《从零构建向量数据库》第7章case2
flask·milvus·向量数据库
游王子8 天前
Milvus(24):全文搜索、文本匹配
milvus
ZHOU_WUYI10 天前
Milvus Docker 部署教程
docker·容器·milvus
feilieren11 天前
Windows 安装 Milvus
数据库·ai·milvus
tangjunjun-owen11 天前
Milvus 2.4 使用详解:从零构建向量数据库并实现搜索功能(Python 实战)
数据库·python·milvus·rag