[安装并使用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.
相关推荐
m0_579146654 天前
PostgreSQL+Milvus分层存储架构:双写一致性与CAP理论取舍分析
postgresql·架构·milvus·cap
Chasing__Dreams4 天前
向量数据库--Milvus--2--介绍
数据库·milvus
像风一样自由20204 天前
15.Milvus是什么?为什么RAG系统经常使用它?
postgresql·大模型·milvus·rag·智能体
老郑聊AI业财智造5 天前
数据不搬家,也能做检索:Milvus的“湖原生”架构革命
人工智能·ai·架构·软件工程·软件构建·milvus
像风一样自由20205 天前
14.什么时候用pgvector什么时候单独部署Milvus
postgresql·大模型·微调·milvus
海天一色y6 天前
基于FastAPI + Milvus + DeepSeek构建的医学知识问答系统
fastapi·milvus
Jackyzhe6 天前
向量库不再囤数据:Milvus 3.0 零拷贝直读数据湖
milvus
会编程的吕洞宾6 天前
Spring AI 2.0 接 Milvus 做混合检索:RAG 召回率翻倍的实战方案
人工智能·spring·milvus
tryCbest8 天前
搭建企业知识库之Milvus 向量数据库
数据库·milvus
ryan_9968 天前
生产环境向量检索数据库选型:Elasticsearch、Qdrant、Milvus 与 Chroma
数据库·elasticsearch·milvus·向量数据库·chroma·qdrant