[安装并使用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.
相关推荐
智码看视界3 小时前
向量数据库选型实战:Milvus vs Chroma vs Qdrant 谁更适合 RAG
embedding·milvus·向量数据库·chroma·rag·语义检索·选型对比
Maiko Star4 小时前
* LangChain中Milvus的使用指南
langchain·milvus
大连好光景7 天前
向量数据库的工作流程详解
数据库·milvus
Alice-YUE8 天前
向量数据库选型实战:Chroma/Qdrant/Milvus/PgVector 怎么选
数据库·milvus·向量数据库·chroma·rag·qdrant
温暖小土10 天前
CentOS 部署 Milvus 向量数据库完整指南
centos·ai编程·milvus·向量数据库
91刘仁德12 天前
RAG实战-从 NoSQL 到 Milvus 混合检索的架构演进
架构·nosql·milvus
91刘仁德12 天前
RAG实战 - 向量数据库(Milvus)
数据库·milvus
梦想不只是梦与想12 天前
向量数据库Milvus: 管理与工具
大模型·milvus·attu
海天一色y20 天前
生产级医疗AI Agent:Multi-Agent RAG架构解析
redis·milvus·multi-agent
Hrain-AI21 天前
AI 爬虫三档授权工程落地:搜索放行、训练拦截、Agent 分层(附脚本)
人工智能·elasticsearch·milvus